Skip to content

Commit

Permalink
🔧Fix Ruff configuration in pyproject.toml (#1780)
Browse files Browse the repository at this point in the history
Signed-off-by: zethson <[email protected]>
  • Loading branch information
Zethson authored Aug 2, 2024
1 parent 4159e92 commit 5dd0d2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5dd0d2e

Please sign in to comment.