Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
  • Loading branch information
gaborbernat committed Oct 25, 2022
1 parent b99cd20 commit d3304da
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Expand Up @@ -17,7 +17,7 @@ jobs:
fail-fast: false
matrix:
py:
- "3.11.0-beta.5"
- "3.11.0rc2"
- "3.10"
- "3.9"
- "3.8"
Expand Down
9 changes: 6 additions & 3 deletions .pre-commit-config.yaml
Expand Up @@ -12,19 +12,22 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/asottile/pyupgrade
rev: v2.38.0
rev: v3.1.0
hooks:
- id: pyupgrade
args: ["--py36-plus"]
exclude: "^(src/virtualenv/create/via_global_ref/_virtualenv.py|src/virtualenv/create/via_global_ref/builtin/python2/site.py|src/virtualenv/discovery/py_info.py|tasks/__main__zipapp.py)$"
- repo: https://github.com/asottile/pyupgrade
rev: v2.38.4
hooks:
- id: pyupgrade
files: "^(src/virtualenv/create/via_global_ref/_virtualenv.py|src/virtualenv/create/via_global_ref/builtin/python2/site.py|src/virtualenv/discovery/py_info.py|tasks/__main__zipapp.py)$"
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.8.0
rev: 22.10.0
hooks:
- id: black
args: [--safe]
Expand All @@ -43,7 +46,7 @@ repos:
- id: tox-ini-fmt
args: ["-p", "fix_lint"]
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v2.0.0
rev: v2.2.0
hooks:
- id: setup-cfg-fmt
args: [--min-py3-version, "3.6 ", "--max-py-version", "3.10"]
Expand Down
2 changes: 1 addition & 1 deletion tasks/update_embedded.py
Expand Up @@ -66,7 +66,7 @@ def handle_file(previous_content, filename, variable_name, previous_encoded):
def report(exit_code, new, next_match, current, script_path):
if new != current:
print("Content updated; overwriting... ", end="")
with open(script_path, "wt") as current_fh:
with open(script_path, "w") as current_fh:
current_fh.write(new)
print("done.")
else:
Expand Down

0 comments on commit d3304da

Please sign in to comment.