Skip to content

Commit 5e74b38

Browse files
authored
pre-commit: update our dependencies (#179)
* pre-commit: update our dependencies I had to deal with `PYTHONPATH` again and also with `DJANGO_SETTINGS_MODULE` this time. Mainly, I did this work because my PR at readthedocs/readthedocs.org#10355 is failing and it doesn't make sense. This fixed my issue locally and I hope it fixes the issue on CircleCI as well. Let's see. * Update darker dependencies as well
1 parent acc68e5 commit 5e74b38

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

pre-commit-config.yaml

+8-10
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ fail_fast: false
33
repos:
44

55
- repo: https://github.com/pre-commit/pre-commit-hooks
6-
rev: v4.1.0
6+
rev: v4.4.0
77
hooks:
88
# Disabled because yapf is better for our purpose
99
# - id: autopep8-wrapper
@@ -38,7 +38,7 @@ repos:
3838
args: ['--fix=lf']
3939

4040
- repo: https://github.com/PyCQA/autoflake
41-
rev: v1.7.7
41+
rev: v2.1.1
4242
hooks:
4343
- id: autoflake
4444
args: ['--in-place', '--remove-all-unused-imports', '--remove-unused-variable']
@@ -51,30 +51,28 @@ repos:
5151
# args: ['--in-place', '--wrap-summaries=80', '--wrap-descriptions=80', '--pre-summary-newline']
5252

5353
- repo: https://github.com/akaihola/darker
54-
rev: 1.3.2
54+
rev: 1.7.1
5555
hooks:
5656
- id: darker
5757
# TODO: find a way to pass `--check` only when running via `tox -e
5858
# pre-commit`
5959
args: ['--isort']
6060
additional_dependencies:
61-
- isort==5.10.1
62-
# darker is not compatible with v22.1.0
63-
# https://github.com/akaihola/darker/issues/264
64-
- black==21.12b0
61+
- isort==5.12.0
62+
- black==23.3.0
6563
exclude: |
6664
(?x)^(
6765
readthedocs/rtd_tests/files/conf.py|
6866
)$
6967
7068
- repo: https://github.com/asottile/blacken-docs
71-
rev: v1.12.1
69+
rev: 1.13.0
7270
hooks:
7371
- id: blacken-docs
7472
additional_dependencies: [black==22.10.0]
7573

7674
- repo: https://github.com/PyCQA/prospector
77-
rev: 1.3.1
75+
rev: 1.10.2
7876
hooks:
7977
- id: prospector
8078
args:
@@ -92,7 +90,7 @@ repos:
9290
# Because of an issue with pylint's Django utils and PATH environment, we add PYTHONPATH.
9391
# This was used as a hack when running on Circle CI as well
9492
# Once we upgrade to prospector >=1.9, we can remove it again.
95-
entry: env PYTHONPATH=readthedocs prospector
93+
entry: env PYTHONPATH=readthedocs:./ DJANGO_SETTINGS_MODULE=readthedocs.settings.test prospector
9694
# We have to install the dependencies from an URL since we don't have access to this file easily from pre-commit
9795
additional_dependencies:
9896
- -r

0 commit comments

Comments
 (0)