diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 165d5db..7c4e5d0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -27,7 +27,7 @@ repos: - repo: https://github.com/codespell-project/codespell - rev: v2.4.2 + rev: v2.4.3 hooks: - id: codespell args: @@ -39,7 +39,7 @@ repos: - id: add-trailing-comma - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.20 + rev: v0.16.1 hooks: - id: ruff args: ["--fix", "--show-fixes"] @@ -62,12 +62,12 @@ repos: - id: nb-strip-paths - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.25.1 + rev: v2.26.0 hooks: - id: pyproject-fmt - repo: https://github.com/woodruffw/zizmor-pre-commit - rev: v1.26.1 + rev: v1.28.0 hooks: - id: zizmor diff --git a/ruff.toml b/ruff.toml index cf3061a..acaaf54 100644 --- a/ruff.toml +++ b/ruff.toml @@ -3,6 +3,7 @@ line-length = 80 lint.select = ["ALL"] lint.ignore = [ + "CPY001", # Missing copyright notice at top of file "D203", # 1 blank line required before class docstring "D205", # 1 blank line required between summary line and description "D213", # incompatible. Ignoring `multi-line-summary-second-line` @@ -20,13 +21,13 @@ lint.ignore = [ ] "test_*.py" = [ "ANN001", # Missing type annotation for function argument + "ANN002", # Missing type annotation for `*args` + "ANN003", # Missing type annotation for `**kwargs` "ANN201", # Missing return type annotation for public function "ANN202", # Missing return type annotation for private function "INP001", # File is part of an implicit namespace package "PD901", # Avoid using the generic variable name `df` for DataFrames "S101", # Use of assert detected - "ANN002", # Missing type annotation for `*args` - "ANN003", # Missing type annotation for `**kwargs` ] "ctd/extras.py" = [ "ANN001", # Missing type annotation for function argument @@ -36,18 +37,18 @@ lint.ignore = [ # nbqa-ruff acts on converted .py so we cannot glob .ipynb :-/ # https://github.com/nbQA-dev/nbQA/issues/823 "notebooks/*" = [ - "ANN001", # Missing type annotation for function argument - "ANN201", # Missing return type annotation for public function - "B018", # Found useless expression. Either assign it to a variable or remove it - "D100", # Missing docstring in public module - "D103", # Missing docstring in public function - "E402", # Module level import not at top of file - "FBT003", # Boolean positional value in function call - "INP001", # File is part of an implicit namespace package - "N816", # Variable in global scope should not be mixedCase - "PD901", # Avoid using the generic variable name `df` for DataFrames - "SLF001", # Private member accessed - "T201", # `print` found" + "ANN001", # Missing type annotation for function argument + "ANN201", # Missing return type annotation for public function + "B018", # Found useless expression. Either assign it to a variable or remove it + "D100", # Missing docstring in public module + "D103", # Missing docstring in public function + "E402", # Module level import not at top of file + "FBT003", # Boolean positional value in function call + "INP001", # File is part of an implicit namespace package + "N816", # Variable in global scope should not be mixedCase + "PD901", # Avoid using the generic variable name `df` for DataFrames + "SLF001", # Private member accessed + "T201", # `print` found" ] [lint.pycodestyle] max-doc-length = 180