Skip to content

Commit

Permalink
cautious increase in ruff lint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
angusmcb committed Jan 16, 2025
1 parent d3ac6a0 commit 052c7c0
Showing 1 changed file with 27 additions and 223 deletions.
250 changes: 27 additions & 223 deletions ruff_defaults.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,54 +6,11 @@ docstring-code-line-length = 80

[lint]
select = [
"A001",
"A002",
"A003",
"ARG001",
"ARG002",
"ARG003",
"ARG004",
"ARG005",
"ASYNC210",
"ASYNC220",
"ASYNC221",
"ASYNC230",
"ASYNC251",
"B002",
"B003",
"B004",
"B005",
"B006",
"B007",
"B008",
"B009",
"B010",
"B011",
"B012",
"B013",
"B014",
"B015",
"B016",
"B017",
"B018",
"B019",
"B020",
"B021",
"B022",
"B023",
"B024",
"B025",
"B026",
"B028",
"B029",
"B030",
"B031",
"B032",
"B033",
"B034",
"B904",
"B905",
"BLE001",
"A",
"ARG",
"ASYNC",
"B",
"BLE",
"C400",
"C401",
"C402",
Expand Down Expand Up @@ -82,25 +39,7 @@ select = [
"DTZ007",
"DTZ011",
"DTZ012",
"E101",
"E401",
"E402",
"E501",
"E701",
"E702",
"E703",
"E711",
"E712",
"E713",
"E714",
"E721",
"E722",
"E731",
"E741",
"E742",
"E743",
"E902",
"E999",
"E",
"EM101",
"EM102",
"EM103",
Expand All @@ -109,49 +48,7 @@ select = [
"EXE003",
"EXE004",
"EXE005",
"F401",
"F402",
"F403",
"F404",
"F405",
"F406",
"F407",
"F501",
"F502",
"F503",
"F504",
"F505",
"F506",
"F507",
"F508",
"F509",
"F521",
"F522",
"F523",
"F524",
"F525",
"F541",
"F601",
"F602",
"F621",
"F622",
"F631",
"F632",
"F633",
"F634",
"F701",
"F702",
"F704",
"F706",
"F707",
"F722",
"F811",
"F821",
"F822",
"F823",
"F841",
"F842",
"F901",
"F",
"FA100",
"FA102",
"FBT001",
Expand All @@ -165,8 +62,7 @@ select = [
"G101",
"G201",
"G202",
"I001",
"I002",
"I",
"ICN001",
"ICN002",
"ICN003",
Expand Down Expand Up @@ -195,8 +91,6 @@ select = [
"PERF102",
"PERF401",
"PERF402",
"PGH001",
"PGH002",
"PGH005",
"PIE790",
"PIE794",
Expand Down Expand Up @@ -241,7 +135,6 @@ select = [
"PLR0133",
"PLR0206",
"PLR0402",
"PLR1701",
"PLR1711",
"PLR1714",
"PLR1722",
Expand Down Expand Up @@ -339,22 +232,7 @@ select = [
"RET507",
"RET508",
"RSE102",
"RUF001",
"RUF002",
"RUF003",
"RUF005",
"RUF006",
"RUF007",
"RUF008",
"RUF009",
"RUF010",
"RUF011",
"RUF012",
"RUF013",
"RUF015",
"RUF016",
"RUF100",
"RUF200",
"RUF",
"S101",
"S102",
"S103",
Expand Down Expand Up @@ -402,32 +280,6 @@ select = [
"S609",
"S612",
"S701",
"SIM101",
"SIM102",
"SIM103",
"SIM105",
"SIM107",
"SIM108",
"SIM109",
"SIM110",
"SIM112",
"SIM114",
"SIM115",
"SIM116",
"SIM117",
"SIM118",
"SIM201",
"SIM202",
"SIM208",
"SIM210",
"SIM211",
"SIM212",
"SIM220",
"SIM221",
"SIM222",
"SIM223",
"SIM300",
"SIM910",
"SLF001",
"SLOT000",
"SLOT001",
Expand All @@ -444,73 +296,25 @@ select = [
"TD005",
"TD006",
"TD007",
"TID251",
"TID252",
"TID253",
"TRY002",
"TRY003",
"TRY004",
"TRY200",
"TRY201",
"TRY300",
"TRY301",
"TRY302",
"TRY400",
"TRY401",
"UP001",
"UP003",
"UP004",
"UP005",
"UP006",
"UP007",
"UP008",
"UP009",
"UP010",
"UP011",
"UP012",
"UP013",
"UP014",
"UP015",
"UP017",
"UP018",
"UP019",
"UP020",
"UP021",
"UP022",
"UP023",
"UP024",
"UP025",
"UP026",
"UP027",
"UP028",
"UP029",
"UP030",
"UP031",
"UP032",
"UP033",
"UP034",
"UP035",
"UP036",
"UP037",
"UP038",
"UP039",
"UP040",
"W291",
"W292",
"W293",
"W505",
"W605",
"YTT101",
"YTT102",
"YTT103",
"YTT201",
"YTT202",
"YTT203",
"YTT204",
"YTT301",
"YTT302",
"YTT303",
"TID",
"TRY",
"UP",
"W",
"YTT",
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
]
exclude = []

[lint.per-file-ignores]
"**/scripts/*" = ["INP001", "T201"]
Expand Down

0 comments on commit 052c7c0

Please sign in to comment.