Skip to content

Commit 954b12e

Browse files
committed
improve pre-commit
1 parent dbaa17b commit 954b12e

File tree

2 files changed

+9
-20
lines changed

2 files changed

+9
-20
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,6 @@ on:
77
branches: [main]
88

99
jobs:
10-
lint:
11-
runs-on: ubuntu-latest
12-
strategy:
13-
matrix:
14-
python-version: ["3.10", "3.11"]
15-
16-
steps:
17-
- uses: actions/checkout@v3
18-
- name: Set up Python
19-
uses: actions/setup-python@v4
20-
with:
21-
python-version: ${{ matrix.python-version }}
22-
- name: Run lint
23-
uses: pre-commit/[email protected]
24-
2510
test:
2611
runs-on: ubuntu-latest
2712
strategy:

.pre-commit-config.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
1+
ci:
2+
autofix_prs: false
3+
14
# See https://pre-commit.com for more information
25
# See https://pre-commit.com/hooks.html for more hooks
36
repos:
47
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.4.0
8+
rev: v4.6.0
69
hooks:
10+
- id: debug-statements
711
- id: trailing-whitespace
812
exclude_types: [svg]
913
- id: end-of-file-fixer
1014
exclude_types: [svg]
1115
- id: check-yaml
1216
- id: check-added-large-files
13-
args: ['--maxkb=1500']
14-
- repo: https://github.com/charliermarsh/ruff-pre-commit
15-
rev: v0.1.4
17+
args: ["--maxkb=1500"]
18+
- repo: https://github.com/astral-sh/ruff-pre-commit
19+
rev: v0.4.2
1620
hooks:
1721
- id: ruff
1822
- id: ruff-format
1923
- repo: https://github.com/nbQA-dev/nbQA
20-
rev: 1.7.0
24+
rev: 1.8.5
2125
hooks:
2226
- id: nbqa-ruff
2327
- repo: https://github.com/econchick/interrogate

0 commit comments

Comments
 (0)