diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2f8a201a3..62afca081 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -48,8 +48,7 @@ repos: hooks: - id: mypy args: [--no-strict-optional, --ignore-missing-imports] - additional_dependencies: - ["types-pkg-resources", "types-requests", "types-attrs"] + additional_dependencies: ["types-requests", "types-attrs"] exclude: | (?x)( test_notebooks.py diff --git a/pyproject.toml b/pyproject.toml index 27da5f487..dff5fac68 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -78,7 +78,7 @@ dev = [ [tool.ruff] src = ["src"] line-length = 88 -select = [ +lint.select = [ "F", # Errors detected by Pyflakes "E", # Error detected by Pycodestyle "W", # Warning detected by Pycodestyle @@ -95,7 +95,7 @@ select = [ "PTH", # Use pathlib "S" # Security ] -ignore = [ +lint.ignore = [ # Do not catch blind exception: `Exception` "BLE001", # Errors from function calls in argument defaults. These are fine when the result is immutable. @@ -166,10 +166,10 @@ ignore = [ "S607" ] -[tool.ruff.pydocstyle] +[tool.ruff.lint.pydocstyle] convention = "google" -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] "docs/*" = ["I"] "tests/**/*.py" = [ "D", # docstrings are allowed to look a bit off