Skip to content

Commit

Permalink
Merge branch 'main' into fix/npm-dep
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwiseman committed Mar 29, 2022
2 parents 24a4a9d + 66a95b0 commit 2734177
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 16 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/main.yml
Expand Up @@ -17,10 +17,8 @@ jobs:
fail-fast: false
matrix:
os: [ ubuntu, windows, macos ]
python-version: [2.7, 3.7, 3.8, 3.9, '3.10']
python-version: [3.7, 3.8, 3.9, '3.10']
include:
- python-version: 2.7
node-version: 12
- python-version: 3.7
node-version: 12
- python-version: 3.8
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -143,7 +143,7 @@ $(BUILD_DIR)/virtualenv: | $(BUILD_DIR)
virtualenv --version || pip install virtualenv
virtualenv build/python-dev
virtualenv build/python-rel
$(SCRIPT_DIR)/python-dev3 pip install black==21.12b0
$(SCRIPT_DIR)/python-dev3 pip install black
@touch $(BUILD_DIR)/virtualenv


Expand Down
16 changes: 6 additions & 10 deletions python/jsbeautifier/javascript/beautifier.py
Expand Up @@ -1462,16 +1462,12 @@ def handle_operator(self, current_token):
elif self._flags.last_token.type == TOKEN.OPERATOR:
# a++ + ++b
# a - -b
space_before = (
current_token.text
in [
"--",
"-",
"++",
"+",
]
and self._flags.last_token.text in ["--", "-", "++", "+"]
)
space_before = current_token.text in [
"--",
"-",
"++",
"+",
] and self._flags.last_token.text in ["--", "-", "++", "+"]
# + and - are not unary when preceeded by -- or ++ operator
# a-- + b
# a * +b
Expand Down
2 changes: 1 addition & 1 deletion python/jsbeautifier/unpackers/packer.py
Expand Up @@ -157,5 +157,5 @@ def _dictunbaser(self, string):
"""Decodes a value to an integer."""
ret = 0
for index, cipher in enumerate(string[::-1]):
ret += (self.base ** index) * self.dictionary[cipher]
ret += (self.base**index) * self.dictionary[cipher]
return ret
2 changes: 1 addition & 1 deletion python/pyproject.toml
@@ -1,5 +1,5 @@
[tool.black]
target-version = ['py27', 'py36', 'py37', 'py38']
target-version = ['py33', 'py36', 'py37', 'py38']
exclude = '''
/(
\.eggs
Expand Down

0 comments on commit 2734177

Please sign in to comment.