Skip to content

Commit

Permalink
Try to use Ruff isort
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed May 13, 2024
1 parent c7e9ab1 commit 91309d9
Showing 1 changed file with 37 additions and 7 deletions.
44 changes: 37 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,61 @@

[tool.ruff]
line-length = 120
target-version = "py310"
target-version = "py37"
exclude = [
".venv",
".local",
".test/.local",
".cache",
]

[tool.ruff.format]
indent-style = "space"

[tool.ruff.lint]
extend-select = ["E", "F", "ANN", "W", "T", "COM", "RUF"]
ignore = ["ANN101", "ANN102", "ANN002", "ANN003", "RUF100"]
extend-select = [
"E",
"F",
"ANN",
"W",
"T",
"COM",
"RUF",
]
ignore = [
"ANN101",
"ANN102",
"ANN002",
"ANN003",
"RUF100",
]

[tool.ruff.lint.per-file-ignores]
"tests/*" = ["T201", "E501"]
"test/*" = ["T201", "E501"]
"lizmap_server/tooltip.py" = ["RUF001", "RUF002"]
"tests/*" = [
"T201",
"E501",
]
"test/*" = [
"T201",
"E501",
]
"lizmap_server/tooltip.py" = [
"RUF001",
"RUF002",
]


[tool.ruff.lint.isort]
lines-between-types = 1
#lines-between-types = 1
known-third-party = [
"qgis",
]
#combine-as-imports = true
#split-on-trailing-comma = true
#multi-line-output = 3
#include-trailing-comma = true
#use-parentheses = true
#ensure-newline-before-comments = true

[tool.ruff.lint.flake8-annotations]
ignore-fully-untyped = true
Expand Down

0 comments on commit 91309d9

Please sign in to comment.