Skip to content

Commit

Permalink
pre-commit: Upgrade psf/black for stable style 2023
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored and DimitriPapadopoulos committed Feb 1, 2023
1 parent 7478623 commit f3561a3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,23 +52,23 @@ repos:
- id: check-case-conflict
- id: check-toml
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.28.0
rev: v1.29.0
hooks:
- id: yamllint
args:
- --no-warnings
- -d
- '{extends: relaxed, rules: {line-length: {max: 90}}}'
- repo: https://github.com/psf/black
rev: 22.12.0
rev: 23.1.0
hooks:
- id: black
- repo: https://github.com/Lucas-C/pre-commit-hooks-bandit
rev: v1.0.6
hooks:
- id: python-bandit-vulnerability-check
- repo: https://github.com/PyCQA/autoflake
rev: v2.0.0
rev: v2.0.1
hooks:
- id: autoflake
- repo: https://github.com/PyCQA/flake8
Expand All @@ -84,7 +84,7 @@ repos:
- pycodestyle>=2.9.1
- pyflakes>=2.5.0
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/codespell-project/codespell
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ codespell also works with `pre-commit`, using
rev: v2.2.2
hooks:
- id: codespell
If one configures codespell using the `pyproject.toml` file instead use:

.. code-block:: yaml
Expand Down
2 changes: 1 addition & 1 deletion codespell_lib/tests/test_dictionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def _check_err_rep(
), f"error {err}: correction {rep!r} cannot start with whitespace"
_check_aspell(err, f"error {err!r}", in_aspell[0], fname, languages[0])
prefix = f"error {err}: correction {rep!r}"
for (regex, msg) in [
for regex, msg in [
(start_comma, "%s starts with a comma"),
(
whitespace_comma,
Expand Down

0 comments on commit f3561a3

Please sign in to comment.