sync up linter rules in all files

This commit is contained in:
Jörg Thalheim
2024-09-02 13:40:15 +02:00
parent 59c8b4f209
commit d4d7085397
4 changed files with 56 additions and 4 deletions

View File

@@ -19,7 +19,20 @@ test_driver = ["py.typed"]
target-version = "py311" target-version = "py311"
line-length = 88 line-length = 88
lint.select = [ "E", "F", "I", "U", "N", "RUF", "ANN", "A" ] lint.select = [
"A",
"ANN",
"B",
"C4",
"E",
"F",
"I",
"N",
"RUF",
"TID",
"T100",
"U",
]
lint.ignore = ["E501", "ANN101", "ANN401", "A003"] lint.ignore = ["E501", "ANN101", "ANN401", "A003"]
[tool.mypy] [tool.mypy]

View File

@@ -43,5 +43,18 @@ ignore_missing_imports = true
[tool.ruff] [tool.ruff]
target-version = "py312" target-version = "py312"
line-length = 88 line-length = 88
lint.select = ["E", "F", "I", "U", "N", "RUF", "ANN", "A"] lint.select = [
"A",
"ANN",
"B",
"C4",
"E",
"F",
"I",
"N",
"RUF",
"TID",
"T100",
"U",
]
lint.ignore = ["E501", "E402", "N802", "ANN101", "ANN401", "A003"] lint.ignore = ["E501", "E402", "N802", "ANN101", "ANN401", "A003"]

View File

@@ -44,5 +44,18 @@ ignore_missing_imports = true
[tool.ruff] [tool.ruff]
target-version = "py311" target-version = "py311"
line-length = 88 line-length = 88
lint.select = [ "E", "F", "I", "U", "N", "RUF", "ANN", "A" ] lint.select = [
"A",
"ANN",
"B",
"C4",
"E",
"F",
"I",
"N",
"RUF",
"TID",
"T100",
"U",
]
lint.ignore = ["E501", "E402", "N802", "ANN101", "ANN401", "A003"] lint.ignore = ["E501", "E402", "N802", "ANN101", "ANN401", "A003"]

View File

@@ -10,5 +10,18 @@ exclude = "clan_cli.nixpkgs"
[tool.ruff] [tool.ruff]
line-length = 88 line-length = 88
target-version = "py311" target-version = "py311"
lint.select = [ "E", "F", "I", "U", "N", "RUF", "ANN", "A" ] lint.select = [
"A",
"ANN",
"B",
"C4",
"E",
"F",
"I",
"N",
"RUF",
"TID",
"T100",
"U",
]
lint.ignore = [ "E501", "ANN101", "ANN401", "A003"] lint.ignore = [ "E501", "ANN101", "ANN401", "A003"]