Skip to content

Commit eba1587

Browse files
committed
Update pre-commit config
1 parent f452250 commit eba1587

File tree

3 files changed

+34
-50
lines changed

3 files changed

+34
-50
lines changed

.github/workflows/main.yaml

-7
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,3 @@ jobs:
3434
name: Running Tests
3535
run: |
3636
for nb in **/*.ipynb; do echo $nb; time jupyter nbconvert --to notebook --execute $nb; done
37-
38-
lint:
39-
runs-on: ubuntu-latest
40-
steps:
41-
- uses: actions/checkout@v3
42-
- uses: actions/[email protected]
43-
- uses: pre-commit/[email protected]

.isort.cfg

-2
This file was deleted.

.pre-commit-config.yaml

+34-41
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,55 @@
1+
ci:
2+
# autoupdate_schedule: quarterly
3+
autofix_prs: false
4+
15
repos:
26
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v3.4.0
7+
rev: v4.4.0
48
hooks:
59
- id: trailing-whitespace
610
- id: end-of-file-fixer
711
- id: check-docstring-first
812
- id: check-json
913
- id: check-yaml
10-
- id: pretty-format-json
11-
args: ['--autofix', '--indent=2', '--no-sort-keys']
14+
- id: debug-statements
15+
- id: mixed-line-ending
1216

13-
- repo: https://github.com/ambv/black
14-
rev: 20.8b1
17+
- repo: https://github.com/asottile/pyupgrade
18+
rev: v3.3.1
1519
hooks:
16-
- id: black
17-
args: ['--line-length', '100']
20+
- id: pyupgrade
21+
args:
22+
- '--py38-plus'
1823

19-
- repo: https://gitlab.com/pycqa/flake8
20-
rev: 3.8.4
24+
- repo: https://github.com/psf/black
25+
rev: 23.3.0
2126
hooks:
22-
- id: flake8
27+
- id: black
2328

24-
- repo: https://github.com/asottile/seed-isort-config
25-
rev: v2.2.0
26-
hooks:
27-
- id: seed-isort-config
28-
- repo: https://github.com/pre-commit/mirrors-isort
29-
rev: v5.6.4
29+
- repo: https://github.com/keewis/blackdoc
30+
rev: v0.3.8
3031
hooks:
31-
- id: isort
32+
- id: blackdoc
3233

33-
- repo: https://github.com/deathbeds/prenotebook
34-
rev: f5bdb72a400f1a56fe88109936c83aa12cc349fa
34+
- repo: https://github.com/charliermarsh/ruff-pre-commit
35+
rev: 'v0.0.260'
3536
hooks:
36-
- id: prenotebook
37+
- id: ruff
38+
args: ['--fix']
3739

3840
- repo: https://github.com/pre-commit/mirrors-prettier
39-
rev: v2.2.1
41+
rev: v3.0.0-alpha.6
4042
hooks:
4143
- id: prettier
42-
files: "\\.(\
43-
css|less|scss\
44-
|graphql|gql\
45-
|html\
46-
|js|jsx\
47-
|json\
48-
|ts|tsx\
49-
|vue\
50-
|yaml|yml\
51-
)$"
5244

53-
- repo: https://github.com/pre-commit/mirrors-prettier
54-
rev: v2.2.1
55-
hooks:
56-
- id: prettier
57-
name: prettier-markdown
58-
entry: prettier --write --parser mdx
59-
files: "\\.(\
60-
|md|markdown|mdown|mkdn\
61-
|mdx\
62-
)$"
45+
- repo: https://github.com/nbQA-dev/nbQA
46+
rev: 1.7.0
47+
hooks:
48+
- id: nbqa-ruff
49+
args: ['--fix']
50+
- id: nbqa-isort
51+
args: ['--profile=black']
52+
additional_dependencies: [isort==5.6.4]
53+
- id: nbqa-black
54+
- id: nbqa-pyupgrade
55+
args: ['--py37-plus']

0 commit comments

Comments
 (0)