move all ruff settings in one place

This commit is contained in:
Jörg Thalheim
2024-09-02 14:03:47 +02:00
parent 15ff74f7c2
commit 3d6dbdd97f
5 changed files with 7 additions and 85 deletions

View File

@@ -14,27 +14,6 @@ find = {}
[tool.setuptools.package-data]
test_driver = ["py.typed"]
[tool.ruff]
target-version = "py311"
line-length = 88
lint.select = [
"A",
"ANN",
"B",
"C4",
"E",
"F",
"I",
"N",
"RUF",
"TID",
"T100",
"U",
]
lint.ignore = ["E501", "ANN101", "ANN401", "A003"]
[tool.mypy]
python_version = "3.11"
warn_redundant_casts = true

View File

@@ -39,22 +39,3 @@ no_implicit_optional = true
[[tool.mypy.overrides]]
module = "clan_cli.*"
ignore_missing_imports = true
[tool.ruff]
target-version = "py312"
line-length = 88
lint.select = [
"A",
"ANN",
"B",
"C4",
"E",
"F",
"I",
"N",
"RUF",
"TID",
"T100",
"U",
]
lint.ignore = ["E501", "E402", "N802", "ANN101", "ANN401", "A003"]

View File

@@ -64,25 +64,3 @@ ignore_missing_imports = true
module = "setuptools.*"
ignore_missing_imports = true
[tool.ruff]
target-version = "py311"
line-length = 88
lint.select = [
"A",
"ANN",
"ASYNC",
"B",
"C4",
"DTZ",
"E",
"EM",
"F",
"I",
"N",
"RUF",
"T10",
"TID",
"U",
"YTT",
]
lint.ignore = ["E501", "E402", "E731", "ANN101", "ANN401", "A003"]

View File

@@ -39,23 +39,3 @@ no_implicit_optional = true
[[tool.mypy.overrides]]
module = "argcomplete.*"
ignore_missing_imports = true
[tool.ruff]
target-version = "py311"
line-length = 88
lint.select = [
"A",
"ANN",
"B",
"C4",
"E",
"F",
"I",
"N",
"RUF",
"TID",
"T100",
"U",
]
lint.ignore = ["E501", "E402", "N802", "ANN101", "ANN401", "A003"]

View File

@@ -8,20 +8,24 @@ no_implicit_optional = true
exclude = "clan_cli.nixpkgs"
[tool.ruff]
line-length = 88
target-version = "py311"
line-length = 88
lint.select = [
"A",
"ANN",
"ASYNC",
"B",
"C4",
"DTZ",
"E",
"EM",
"F",
"I",
"N",
"RUF",
"T10",
"TID",
"T100",
"U",
"YTT",
]
lint.ignore = [ "E501", "ANN101", "ANN401", "A003"]
lint.ignore = ["E501", "E402", "E731", "ANN101", "ANN401", "A003"]