Skip to content

Commit

Permalink
build: Update settings as per latest ruff requirements in pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
prosto committed Feb 8, 2024
1 parent f421ed5 commit 652d1f1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ skip-string-normalization = true
target-version = "py38"
line-length = 120

select = [
lint.select = [
"A",
"ARG",
"B",
Expand All @@ -172,7 +172,7 @@ select = [
"W",
"YTT",
]
ignore = [
lint.ignore = [
# Allow function arguments shadowing a Python builtin (e.g. `id`)
"A002",
"A003",
Expand All @@ -198,21 +198,21 @@ ignore = [
"EM101",
"EM102",
]
unfixable = [
lint.unfixable = [
# Don't touch unused imports
"F401",
]

[tool.mypy]
ignore_missing_imports = true

[tool.ruff.isort]
[tool.ruff.lint.isort]
known-first-party = ["neo4j_haystack"]

[tool.ruff.flake8-tidy-imports]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
# Tests can use magic values, assertions, and relative imports
"tests/**/*" = ["PLR2004", "S101", "TID252"]

Expand Down

0 comments on commit 652d1f1

Please sign in to comment.