`make pytest` already runs a superset of all the tests run by `python3
setup-css.py test` and `python3 setup-js.py test`. (The former didn't
work anyway due to a typo.)
Fixes: #2300, #2301
* Fixed#2219 - formatting of new Angular control flow syntax
* Add 'angular' templating option; use it for html beautifier control flow syntax
* Add more precise selection for angular control flow close tag
* Print angular control flow tokens with basic formatting
* Add tests for fixing issue #2219
* Change angular control flow selection to do via pattern
* Fix selecting control flow closing brace if it is not preceded by whitespace
* Fix regex for control flow start pattern; only select control flow open if indent_handlebars is true
* Changing angular at-string detection regex
Limiting this to a smaller set.
---------
Co-authored-by: Liam Newman <bitwiseman@gmail.com>
`'\('` raises a `DeprecationWarning`, because `\(` is not a valid escape sequence in Python:
```
tests/unit/test_cli/test_schema_commands.py::test_openapi_typescript_command[Custom-]
D:\a\litestar\litestar\.venv\Lib\site-packages\jsbeautifier\unpackers\packer.py:31: DeprecationWarning: invalid escape sequence '\('
"eval[ ]*\([ ]*function[ ]*\([ ]*p[ ]*,[ ]*a[ ]*,[ ]*c["
```
Link: https://github.com/litestar-org/litestar/actions/runs/6282794210/job/17062629903#step:11:71
But, `r'\('` is actually fine. So, let use it!
There are small typos in:
- python/jsbeautifier/javascript/beautifier.py
- tools/template/beautify.wrapper.js
Fixes:
- Should read `conditional` rather than `conditionial`.
- Should read `overridden` rather than `overriden`.
Signed-off-by: Tim Gates <tim.gates@iress.com>
This fix makes sure we can identify signed numbers correctly when they are used as an object property to avoid having issues with line wrapping
fixes#1932
The Python version changed the wrong variable, which means that the
test fails.
This patch changes the variable from '_flags.whitespace_before' to
'_output.space_before_token'.