Skip to content

Commit 799c70a

Browse files
authored
Merge pull request #266 from ocefpaf/update_pre-commits
Update pre commits
2 parents c92fed8 + 47d425c commit 799c70a

2 files changed

Lines changed: 19 additions & 18 deletions

File tree

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ repos:
2727

2828

2929
- repo: https://github.com/codespell-project/codespell
30-
rev: v2.4.2
30+
rev: v2.4.3
3131
hooks:
3232
- id: codespell
3333
args:
@@ -39,7 +39,7 @@ repos:
3939
- id: add-trailing-comma
4040

4141
- repo: https://github.com/astral-sh/ruff-pre-commit
42-
rev: v0.15.20
42+
rev: v0.16.1
4343
hooks:
4444
- id: ruff
4545
args: ["--fix", "--show-fixes"]
@@ -62,12 +62,12 @@ repos:
6262
- id: nb-strip-paths
6363

6464
- repo: https://github.com/tox-dev/pyproject-fmt
65-
rev: v2.25.1
65+
rev: v2.26.0
6666
hooks:
6767
- id: pyproject-fmt
6868

6969
- repo: https://github.com/woodruffw/zizmor-pre-commit
70-
rev: v1.26.1
70+
rev: v1.28.0
7171
hooks:
7272
- id: zizmor
7373

ruff.toml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ line-length = 80
33
lint.select = ["ALL"]
44

55
lint.ignore = [
6+
"CPY001", # Missing copyright notice at top of file
67
"D203", # 1 blank line required before class docstring
78
"D205", # 1 blank line required between summary line and description
89
"D213", # incompatible. Ignoring `multi-line-summary-second-line`
@@ -20,13 +21,13 @@ lint.ignore = [
2021
]
2122
"test_*.py" = [
2223
"ANN001", # Missing type annotation for function argument
24+
"ANN002", # Missing type annotation for `*args`
25+
"ANN003", # Missing type annotation for `**kwargs`
2326
"ANN201", # Missing return type annotation for public function
2427
"ANN202", # Missing return type annotation for private function
2528
"INP001", # File is part of an implicit namespace package
2629
"PD901", # Avoid using the generic variable name `df` for DataFrames
2730
"S101", # Use of assert detected
28-
"ANN002", # Missing type annotation for `*args`
29-
"ANN003", # Missing type annotation for `**kwargs`
3031
]
3132
"ctd/extras.py" = [
3233
"ANN001", # Missing type annotation for function argument
@@ -36,18 +37,18 @@ lint.ignore = [
3637
# nbqa-ruff acts on converted .py so we cannot glob .ipynb :-/
3738
# https://github.com/nbQA-dev/nbQA/issues/823
3839
"notebooks/*" = [
39-
"ANN001", # Missing type annotation for function argument
40-
"ANN201", # Missing return type annotation for public function
41-
"B018", # Found useless expression. Either assign it to a variable or remove it
42-
"D100", # Missing docstring in public module
43-
"D103", # Missing docstring in public function
44-
"E402", # Module level import not at top of file
45-
"FBT003", # Boolean positional value in function call
46-
"INP001", # File is part of an implicit namespace package
47-
"N816", # Variable in global scope should not be mixedCase
48-
"PD901", # Avoid using the generic variable name `df` for DataFrames
49-
"SLF001", # Private member accessed
50-
"T201", # `print` found"
40+
"ANN001", # Missing type annotation for function argument
41+
"ANN201", # Missing return type annotation for public function
42+
"B018", # Found useless expression. Either assign it to a variable or remove it
43+
"D100", # Missing docstring in public module
44+
"D103", # Missing docstring in public function
45+
"E402", # Module level import not at top of file
46+
"FBT003", # Boolean positional value in function call
47+
"INP001", # File is part of an implicit namespace package
48+
"N816", # Variable in global scope should not be mixedCase
49+
"PD901", # Avoid using the generic variable name `df` for DataFrames
50+
"SLF001", # Private member accessed
51+
"T201", # `print` found"
5152
]
5253
[lint.pycodestyle]
5354
max-doc-length = 180

0 commit comments

Comments
 (0)