Skip to content

Commit e485fcc

Browse files
author
MarcoGorelli
committed
pre-commit autoupdate, move black hook to local
1 parent 3c72d6f commit e485fcc

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

.pre-commit-config.yaml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,18 @@ repos:
1717
entry: python scripts/run_vulture.py
1818
pass_filenames: true
1919
require_serial: false
20-
- repo: https://github.com/python/black
21-
rev: 22.10.0
22-
hooks:
23-
- id: black
2420
- repo: https://github.com/codespell-project/codespell
2521
rev: v2.2.2
2622
hooks:
2723
- id: codespell
2824
types_or: [python, rst, markdown]
2925
- repo: https://github.com/MarcoGorelli/cython-lint
30-
rev: v0.2.1
26+
rev: v0.9.1
3127
hooks:
3228
- id: cython-lint
29+
- id: double-quote-cython-strings
3330
- repo: https://github.com/pre-commit/pre-commit-hooks
34-
rev: v4.3.0
31+
rev: v4.4.0
3532
hooks:
3633
- id: debug-statements
3734
- id: end-of-file-fixer
@@ -50,22 +47,22 @@ repos:
5047
exclude: ^pandas/_libs/src/(klib|headers)/
5148
args: [--quiet, '--extensions=c,h', '--headers=h', --recursive, '--filter=-readability/casting,-runtime/int,-build/include_subdir']
5249
- repo: https://github.com/PyCQA/flake8
53-
rev: 5.0.4
50+
rev: 6.0.0
5451
hooks:
5552
- id: flake8
5653
# Need to patch os.remove rule in pandas-dev-flaker
5754
exclude: ^ci/fix_wheels.py
5855
additional_dependencies: &flake8_dependencies
59-
- flake8==5.0.4
56+
- flake8==6.0.0
6057
- flake8-bugbear==22.7.1
6158
- pandas-dev-flaker==0.5.0
6259
- repo: https://github.com/pycqa/pylint
63-
rev: v2.15.5
60+
rev: v2.15.6
6461
hooks:
6562
- id: pylint
6663
stages: [manual]
6764
- repo: https://github.com/pycqa/pylint
68-
rev: v2.15.5
65+
rev: v2.15.6
6966
hooks:
7067
- id: pylint
7168
alias: redefined-outer-name
@@ -88,7 +85,7 @@ repos:
8885
hooks:
8986
- id: isort
9087
- repo: https://github.com/asottile/pyupgrade
91-
rev: v3.2.0
88+
rev: v3.2.2
9289
hooks:
9390
- id: pyupgrade
9491
args: [--py38-plus]
@@ -111,8 +108,19 @@ repos:
111108
hooks:
112109
- id: yesqa
113110
additional_dependencies: *flake8_dependencies
111+
stages: [manual]
114112
- repo: local
115113
hooks:
114+
# NOTE: we make `black` a local hook because if it's installed from
115+
# PyPI (rather than from source) then it'll run twice as fast thanks to mypyc
116+
- id: black
117+
name: black
118+
description: "Black: The uncompromising Python code formatter"
119+
entry: black
120+
language: python
121+
require_serial: true
122+
types_or: [python, pyi]
123+
additional_dependencies: [black==22.10.0]
116124
- id: pyright
117125
# note: assumes python env is setup and activated
118126
name: pyright

0 commit comments

Comments
 (0)