Commit Graph

1018 Commits

Author SHA1 Message Date
jkmnt
23126f937c
fixed (#2291) 2024-09-09 09:43:33 -07:00
Colin Watson
4cf477248d
Remove obsolete setuptools test integration (#2304)
`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
2024-07-31 09:29:39 -07:00
GitHub Action
f53ce3a5ff Bump version numbers for 1.15.1 2024-02-16 16:14:54 +00:00
Liam Newman
96340d5d43 Turn off new angular templating by default in html 2024-02-16 07:29:04 -08:00
GitHub Action
a609668031 Bump version numbers for 1.15.0 2024-02-15 17:35:30 +00:00
gergely-gyorgy-both
5aff965e0b
Fixed #2219 - formatting of new Angular control flow syntax (#2221)
* 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>
2024-02-15 09:26:26 -08:00
GitHub Action
dd95b10d08 Bump version numbers for 1.14.11 2023-11-07 00:22:33 +00:00
GitHub Action
4944f58769 Bump version numbers for 1.14.10 2023-11-07 00:07:05 +00:00
Nikita Sobolev
33d9bf2e5d
Use raw strings to define a regex in packer.py
`'\('` 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!
2023-09-23 13:44:14 +03:00
Liam Newman
503947289a
Merge pull request #2157 from beautify-web/issue/2152-python-test
Add init files to re-enable python tests
2023-08-30 15:51:48 -07:00
Liam Newman
3b5f18ac35 Turn python CSS tests back on 2023-08-30 15:42:19 -07:00
Liam Newman
87483fcbeb
Merge branch 'main' into json-invalid-wrap-with-line-length-and-signed-number 2023-08-30 14:24:25 -07:00
Liam Newman
4cb6c4b6f0
Merge branch 'main' into issue/2152-python-test 2023-08-30 14:22:15 -07:00
Liam Newman
88c0ab5767 Fix tokenizer to recognize es6 code point syntax 2023-08-30 14:12:17 -07:00
Roja A M
8a4f552291 Fix - Invalid prettification of object with unicode as key 2023-08-26 20:01:46 +05:30
GitHub Action
d47e41867f Bump version numbers for 1.14.9 2023-07-20 07:31:44 +00:00
Liam Newman
a669239930 Re-enable python javascript tests 2023-06-12 11:03:15 -07:00
Liam Newman
0051044b3b Add init files to re-enable python tests 2023-06-12 10:48:04 -07:00
GitHub Action
023645e664 Bump version numbers for 1.14.8 2023-06-01 15:30:23 +00:00
Liam Newman
9b61173b07
Merge branch 'main' into json-invalid-wrap-with-line-length-and-signed-number 2023-04-28 09:28:12 -07:00
Liam Newman
4a3ea270b5 Clean up python formatting 2023-04-26 18:26:52 -07:00
Knoxell
88033caeab
use correct variable name 2023-02-17 14:40:40 +01:00
Tim Gates
6d032d3739
docs: Fix a few typos
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>
2022-12-25 12:53:00 +11:00
Muhammad Hammad
97d0f43c4d
Merge branch 'main' into json-invalid-wrap-with-line-length-and-signed-number 2022-11-28 17:08:46 -05:00
Antonius Anggito Arissaputro
a700321057 Minor style check 2022-11-25 14:50:28 +07:00
Antonius Anggito Arissaputro
7c05020785 Change js and py jsbeautifier for record as START_BLOCK token 2022-11-25 03:03:15 +07:00
Antonius Anggito
5cedf34305
Merge branch 'main' into cwthedev-Iss2062_records 2022-11-25 02:47:04 +07:00
Muhammad Hammad
c90470061c fix - semicolon followed by block statement doesnt have new line
This change makes sure that a new line is added everytime a semicolon is followed by a block statement

fixes #1852
2022-11-17 18:43:39 -05:00
Muhammad Hammad
4a2995e8ad fix - invalid line wrap with signed numbers in json property
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
2022-11-17 16:59:13 -05:00
GitHub Action
fded96df28 Bump version numbers for 1.14.7 2022-10-21 16:33:55 +00:00
cw100dev
ada9f66ea1 changes to both js and python jsbeautifiers for issue #2062 to accoutn for new record types 2022-09-08 17:14:37 -07:00
GitHub Action
d86a249d3a Bump version numbers for 1.14.6 2022-08-21 04:43:32 +00:00
GitHub Action
b7917f4cf0 Bump version numbers for 1.14.5 2022-08-07 07:29:33 +00:00
Håvard F. Aasen
457c571d78
Fix test 'Do not remove whitespace after number'
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'.
2022-08-04 21:52:38 +02:00
GitHub Action
3256a5aa0d Bump version numbers for 1.14.4 2022-06-20 23:50:26 +00:00
Liam Newman
87bdfd0154 Fix two spacing issue in CSS 2022-06-20 13:26:35 -07:00
Liam Newman
4cc5e6ef5b
Merge branch 'main' into feature/space-after-named-function-classes 2022-04-21 17:30:35 -07:00
Liam Newman
4b6ba1be74
Merge branch 'main' into in-class-method 2022-04-21 10:01:39 -07:00
Liam Newman
11f2dae290
Merge branch 'main' into feature/space-after-named-function-classes 2022-04-20 21:12:20 -07:00
Hammad
0b35ee91b9 Instead of just relying on the text to confirm last token, also check for the type to be reserved token this way we will be sure that it is actually the special word class instead of a property called class 2022-04-13 03:24:20 -02:30
Liam Newman
73e57eef86
Merge pull request #2011 from bhaveshvasnani/remove_whitespace_number
[Issue 1950] Do not remove whitespace after number
2022-04-12 14:50:17 -07:00
Bhavesh Vasnani
073f66f29b modifying pyhton regex search function 2022-04-13 01:28:32 +05:30
Liam Newman
5344f24bf0
Merge pull request #2035 from mhnaeem/bug/add-grid-template-areas-to-non-semicolon-list
Add grid-template-areas to NON_SEMICOLON_NEWLINE_PROPERTY list
2022-04-12 12:36:47 -07:00
Hammad
1f1f5db201 Accommodating for the fact that the last last token can be of type class but it doesn't necessarily have to be the keyword class 2022-04-12 03:33:09 -02:30
Liam Newman
ade6603f3a
Merge pull request #2039 from mhnaeem/feature/support-forwards-syntax-sass
Fixes #1976 Adding support for the new @forwards syntax in SASS
2022-04-11 22:08:29 -07:00
Hammad
889492414d #1976 adding support for the new @forwards syntax in SASS 2022-04-11 21:19:35 -02:30
Hammad
9cceee0d74 Fix issue #1095 where special words like return without semicolon are followed by prefix operators on newlines 2022-04-11 18:48:10 -02:30
Hammad
ffe9292b3f Add grid-template-areas to NON_SEMICOLON_NEWLINE_PROPERTY list 2022-04-11 18:10:45 -02:30
Hammad
027026093e #1622 - Adds space_after_named_function option for ES6 classes 2022-04-11 03:33:56 -02:30
Liam Newman
5ca6beed8a
Merge branch 'main' into remove_whitespace_number 2022-04-09 08:56:24 -07:00