Skip to content

Commit

Permalink
Update pre-commit URLs and hook/additional_dependencies versions (#124
Browse files Browse the repository at this point in the history
)

* Update pre-commit hook URLs

The `blacken-docs` and `isort` URLs were redirects to other locations.
In addition, the black docs suggest using the `black-pre-commit-mirror`
because it's compiled by mypyc and runs ~2x faster.

* Run `pre-commit autoupdate` and `upadup` to update versions

The updated hook and `addition_dependencies` versions reported
no new issues to be addressed.
  • Loading branch information
kurtmckee authored Nov 12, 2023
1 parent eac2958 commit 21b0ccc
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ repos:
exclude: .*/tests/.*
additional_dependencies: ['gibberish-detector']

- repo: https://github.com/psf/black
- repo: https://github.com/psf/black-pre-commit-mirror
# when updating this version, also update blacken-docs hook below
rev: 23.10.0
rev: 23.11.0
hooks:
- id: black

- repo: https://github.com/asottile/blacken-docs
rev: v1.12.1
- repo: https://github.com/adamchainz/blacken-docs
rev: 1.16.0
hooks:
- id: blacken-docs
additional_dependencies: ['black==23.10.0']
additional_dependencies: ['black==23.11.0']

- repo: https://github.com/timothycrosley/isort
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
Expand All @@ -32,10 +32,10 @@ repos:
# 'darglint~=1.5.4',
'flake8-absolute-import~=1.0',
'flake8-blind-except~=0.2.1',
'flake8-builtins~=1.5.3',
'flake8-cognitive-complexity==0.1.0',
'flake8-comprehensions~=3.8.0',
# 'flake8-docstrings~=1.5.0',
'flake8-builtins~=2.2.0',
'flake8-cognitive-complexity~=0.1.0',
'flake8-comprehensions~=3.14.0',
# 'flake8-docstrings~=1.7.0',
'flake8-logging-format~=0.9.0',
'flake8-mutable~=1.2.0',
'flake8-print~=4.0.0',
Expand All @@ -47,7 +47,7 @@ repos:
]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: mixed-line-ending
args: ['--fix=lf']
Expand Down

0 comments on commit 21b0ccc

Please sign in to comment.