Skip to content

Commit e35fde7

Browse files
committed
Update pre-commit
1 parent fdfb2f0 commit e35fde7

File tree

2 files changed

+19
-37
lines changed

2 files changed

+19
-37
lines changed

.github/workflows/main.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,3 @@ jobs:
7373
push: ${{ github.event_name != 'pull_request' }}
7474
tags: ${{ steps.docker_meta.outputs.tags }}
7575
labels: ${{ steps.docker_meta.outputs.labels }}
76-
77-
lint:
78-
runs-on: ubuntu-latest
79-
steps:
80-
- uses: actions/[email protected]
81-
- uses: actions/[email protected]
82-
- uses: pre-commit/[email protected]

.pre-commit-config.yaml

Lines changed: 19 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,29 @@
1-
repos:
1+
ci:
2+
# autoupdate_schedule: quarterly
3+
autofix_prs: false
24

3-
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
repos:
6+
- repo: https://github.com/pre-commit/pre-commit-hooks
47
rev: v3.4.0
58
hooks:
6-
- id: trailing-whitespace
7-
- id: end-of-file-fixer
8-
- id: check-docstring-first
9-
- id: check-json
10-
- id: check-yaml
11-
- id: pretty-format-json
12-
args: ["--autofix", "--indent=2", "--no-sort-keys"]
13-
14-
- repo: https://github.com/ambv/black
15-
rev: 20.8b1
16-
hooks:
17-
- id: black
18-
args: ["--line-length", "100", "--skip-string-normalization"]
9+
- id: trailing-whitespace
10+
- id: end-of-file-fixer
11+
- id: check-docstring-first
12+
- id: check-json
13+
- id: check-yaml
14+
- id: pretty-format-json
15+
args: ["--autofix", "--indent=2", "--no-sort-keys"]
1916

20-
- repo: https://gitlab.com/pycqa/flake8
21-
rev: 3.9.0
22-
hooks:
23-
- id: flake8
24-
25-
- repo: https://github.com/asottile/seed-isort-config
26-
rev: v2.2.0
27-
hooks:
28-
- id: seed-isort-config
29-
- repo: https://github.com/pre-commit/mirrors-isort
30-
rev: v5.8.0
17+
- repo: https://github.com/psf/black
18+
rev: 23.3.0
3119
hooks:
32-
- id: isort
20+
- id: black
3321

34-
- repo: https://github.com/deathbeds/prenotebook
35-
rev: f5bdb72a400f1a56fe88109936c83aa12cc349fa
22+
- repo: https://github.com/charliermarsh/ruff-pre-commit
23+
rev: "v0.0.260"
3624
hooks:
37-
- id: prenotebook
25+
- id: ruff
26+
args: ["--fix"]
3827

3928
# for R code
4029
# - repo: https://github.com/lorenzwalthert/precommit

0 commit comments

Comments
 (0)