mirror of https://github.com/pypa/hatch.git
683 lines
7.6 KiB
TOML
683 lines
7.6 KiB
TOML
line-length = 120
|
|
|
|
[format]
|
|
docstring-code-format = true
|
|
docstring-code-line-length = 80
|
|
|
|
[lint]
|
|
select = [
|
|
"A001",
|
|
"A002",
|
|
"A003",
|
|
"ARG001",
|
|
"ARG002",
|
|
"ARG003",
|
|
"ARG004",
|
|
"ARG005",
|
|
"ASYNC100",
|
|
"ASYNC101",
|
|
"ASYNC102",
|
|
"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",
|
|
"B035",
|
|
"B904",
|
|
"B905",
|
|
"B909",
|
|
"BLE001",
|
|
"C400",
|
|
"C401",
|
|
"C402",
|
|
"C403",
|
|
"C404",
|
|
"C405",
|
|
"C406",
|
|
"C408",
|
|
"C409",
|
|
"C410",
|
|
"C411",
|
|
"C413",
|
|
"C414",
|
|
"C415",
|
|
"C416",
|
|
"C417",
|
|
"C418",
|
|
"C419",
|
|
"COM818",
|
|
"DTZ001",
|
|
"DTZ002",
|
|
"DTZ003",
|
|
"DTZ004",
|
|
"DTZ005",
|
|
"DTZ006",
|
|
"DTZ007",
|
|
"DTZ011",
|
|
"DTZ012",
|
|
"E101",
|
|
"E112",
|
|
"E113",
|
|
"E115",
|
|
"E116",
|
|
"E201",
|
|
"E202",
|
|
"E203",
|
|
"E211",
|
|
"E221",
|
|
"E222",
|
|
"E223",
|
|
"E224",
|
|
"E225",
|
|
"E226",
|
|
"E227",
|
|
"E228",
|
|
"E231",
|
|
"E241",
|
|
"E242",
|
|
"E251",
|
|
"E252",
|
|
"E261",
|
|
"E262",
|
|
"E265",
|
|
"E266",
|
|
"E271",
|
|
"E272",
|
|
"E273",
|
|
"E274",
|
|
"E275",
|
|
"E401",
|
|
"E402",
|
|
"E502",
|
|
"E701",
|
|
"E702",
|
|
"E703",
|
|
"E711",
|
|
"E712",
|
|
"E713",
|
|
"E714",
|
|
"E721",
|
|
"E722",
|
|
"E731",
|
|
"E741",
|
|
"E742",
|
|
"E743",
|
|
"E902",
|
|
"E999",
|
|
"EM101",
|
|
"EM102",
|
|
"EM103",
|
|
"EXE001",
|
|
"EXE002",
|
|
"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",
|
|
"FA100",
|
|
"FA102",
|
|
"FBT001",
|
|
"FBT002",
|
|
"FLY002",
|
|
"FURB105",
|
|
"FURB110",
|
|
"FURB113",
|
|
"FURB118",
|
|
"FURB129",
|
|
"FURB131",
|
|
"FURB132",
|
|
"FURB136",
|
|
"FURB142",
|
|
"FURB145",
|
|
"FURB148",
|
|
"FURB152",
|
|
"FURB157",
|
|
"FURB161",
|
|
"FURB163",
|
|
"FURB164",
|
|
"FURB166",
|
|
"FURB167",
|
|
"FURB168",
|
|
"FURB169",
|
|
"FURB171",
|
|
"FURB177",
|
|
"FURB180",
|
|
"FURB181",
|
|
"FURB187",
|
|
"FURB192",
|
|
"G001",
|
|
"G002",
|
|
"G003",
|
|
"G004",
|
|
"G010",
|
|
"G101",
|
|
"G201",
|
|
"G202",
|
|
"I001",
|
|
"I002",
|
|
"ICN001",
|
|
"ICN002",
|
|
"ICN003",
|
|
"INP001",
|
|
"INT001",
|
|
"INT002",
|
|
"INT003",
|
|
"ISC003",
|
|
"LOG001",
|
|
"LOG002",
|
|
"LOG007",
|
|
"LOG009",
|
|
"N801",
|
|
"N802",
|
|
"N803",
|
|
"N804",
|
|
"N805",
|
|
"N806",
|
|
"N807",
|
|
"N811",
|
|
"N812",
|
|
"N813",
|
|
"N814",
|
|
"N815",
|
|
"N816",
|
|
"N817",
|
|
"N818",
|
|
"N999",
|
|
"PERF101",
|
|
"PERF102",
|
|
"PERF401",
|
|
"PERF402",
|
|
"PERF403",
|
|
"PGH005",
|
|
"PIE790",
|
|
"PIE794",
|
|
"PIE796",
|
|
"PIE800",
|
|
"PIE804",
|
|
"PIE807",
|
|
"PIE808",
|
|
"PIE810",
|
|
"PLC0105",
|
|
"PLC0131",
|
|
"PLC0132",
|
|
"PLC0205",
|
|
"PLC0208",
|
|
"PLC0414",
|
|
"PLC0415",
|
|
"PLC1901",
|
|
"PLC2401",
|
|
"PLC2403",
|
|
"PLC2701",
|
|
"PLC2801",
|
|
"PLC3002",
|
|
"PLE0100",
|
|
"PLE0101",
|
|
"PLE0115",
|
|
"PLE0116",
|
|
"PLE0117",
|
|
"PLE0118",
|
|
"PLE0237",
|
|
"PLE0241",
|
|
"PLE0302",
|
|
"PLE0303",
|
|
"PLE0304",
|
|
"PLE0305",
|
|
"PLE0307",
|
|
"PLE0308",
|
|
"PLE0309",
|
|
"PLE0604",
|
|
"PLE0605",
|
|
"PLE0643",
|
|
"PLE0704",
|
|
"PLE1132",
|
|
"PLE1141",
|
|
"PLE1142",
|
|
"PLE1205",
|
|
"PLE1206",
|
|
"PLE1300",
|
|
"PLE1307",
|
|
"PLE1310",
|
|
"PLE1507",
|
|
"PLE1519",
|
|
"PLE1520",
|
|
"PLE1700",
|
|
"PLE2502",
|
|
"PLE2510",
|
|
"PLE2512",
|
|
"PLE2513",
|
|
"PLE2514",
|
|
"PLE2515",
|
|
"PLE4703",
|
|
"PLR0124",
|
|
"PLR0133",
|
|
"PLR0202",
|
|
"PLR0203",
|
|
"PLR0206",
|
|
"PLR0402",
|
|
"PLR1701",
|
|
"PLR1704",
|
|
"PLR1711",
|
|
"PLR1714",
|
|
"PLR1722",
|
|
"PLR1730",
|
|
"PLR1733",
|
|
"PLR1736",
|
|
"PLR2004",
|
|
"PLR2044",
|
|
"PLR5501",
|
|
"PLR6104",
|
|
"PLR6201",
|
|
"PLR6301",
|
|
"PLW0108",
|
|
"PLW0120",
|
|
"PLW0127",
|
|
"PLW0128",
|
|
"PLW0129",
|
|
"PLW0131",
|
|
"PLW0133",
|
|
"PLW0177",
|
|
"PLW0211",
|
|
"PLW0245",
|
|
"PLW0406",
|
|
"PLW0602",
|
|
"PLW0603",
|
|
"PLW0604",
|
|
"PLW0642",
|
|
"PLW0711",
|
|
"PLW1501",
|
|
"PLW1508",
|
|
"PLW1509",
|
|
"PLW1510",
|
|
"PLW1514",
|
|
"PLW1641",
|
|
"PLW2101",
|
|
"PLW2901",
|
|
"PLW3201",
|
|
"PLW3301",
|
|
"PT001",
|
|
"PT002",
|
|
"PT003",
|
|
"PT006",
|
|
"PT007",
|
|
"PT008",
|
|
"PT009",
|
|
"PT010",
|
|
"PT011",
|
|
"PT012",
|
|
"PT013",
|
|
"PT014",
|
|
"PT015",
|
|
"PT016",
|
|
"PT017",
|
|
"PT018",
|
|
"PT019",
|
|
"PT020",
|
|
"PT021",
|
|
"PT022",
|
|
"PT023",
|
|
"PT024",
|
|
"PT025",
|
|
"PT026",
|
|
"PT027",
|
|
"PYI001",
|
|
"PYI002",
|
|
"PYI003",
|
|
"PYI004",
|
|
"PYI005",
|
|
"PYI006",
|
|
"PYI007",
|
|
"PYI008",
|
|
"PYI009",
|
|
"PYI010",
|
|
"PYI011",
|
|
"PYI012",
|
|
"PYI013",
|
|
"PYI014",
|
|
"PYI015",
|
|
"PYI016",
|
|
"PYI017",
|
|
"PYI018",
|
|
"PYI019",
|
|
"PYI020",
|
|
"PYI021",
|
|
"PYI024",
|
|
"PYI025",
|
|
"PYI026",
|
|
"PYI029",
|
|
"PYI030",
|
|
"PYI032",
|
|
"PYI033",
|
|
"PYI034",
|
|
"PYI035",
|
|
"PYI036",
|
|
"PYI041",
|
|
"PYI042",
|
|
"PYI043",
|
|
"PYI044",
|
|
"PYI045",
|
|
"PYI046",
|
|
"PYI047",
|
|
"PYI048",
|
|
"PYI049",
|
|
"PYI050",
|
|
"PYI051",
|
|
"PYI052",
|
|
"PYI053",
|
|
"PYI054",
|
|
"PYI055",
|
|
"PYI056",
|
|
"PYI058",
|
|
"RET503",
|
|
"RET504",
|
|
"RET505",
|
|
"RET506",
|
|
"RET507",
|
|
"RET508",
|
|
"RSE102",
|
|
"RUF001",
|
|
"RUF002",
|
|
"RUF003",
|
|
"RUF005",
|
|
"RUF006",
|
|
"RUF007",
|
|
"RUF008",
|
|
"RUF009",
|
|
"RUF010",
|
|
"RUF012",
|
|
"RUF013",
|
|
"RUF015",
|
|
"RUF016",
|
|
"RUF017",
|
|
"RUF018",
|
|
"RUF019",
|
|
"RUF020",
|
|
"RUF021",
|
|
"RUF022",
|
|
"RUF023",
|
|
"RUF024",
|
|
"RUF025",
|
|
"RUF026",
|
|
"RUF027",
|
|
"RUF028",
|
|
"RUF029",
|
|
"RUF100",
|
|
"S101",
|
|
"S102",
|
|
"S103",
|
|
"S104",
|
|
"S105",
|
|
"S106",
|
|
"S107",
|
|
"S108",
|
|
"S110",
|
|
"S112",
|
|
"S113",
|
|
"S201",
|
|
"S202",
|
|
"S301",
|
|
"S302",
|
|
"S303",
|
|
"S304",
|
|
"S305",
|
|
"S306",
|
|
"S307",
|
|
"S308",
|
|
"S310",
|
|
"S311",
|
|
"S312",
|
|
"S313",
|
|
"S314",
|
|
"S315",
|
|
"S316",
|
|
"S317",
|
|
"S318",
|
|
"S319",
|
|
"S320",
|
|
"S321",
|
|
"S323",
|
|
"S324",
|
|
"S401",
|
|
"S402",
|
|
"S403",
|
|
"S405",
|
|
"S406",
|
|
"S407",
|
|
"S408",
|
|
"S409",
|
|
"S411",
|
|
"S412",
|
|
"S413",
|
|
"S415",
|
|
"S501",
|
|
"S502",
|
|
"S503",
|
|
"S504",
|
|
"S505",
|
|
"S506",
|
|
"S507",
|
|
"S508",
|
|
"S509",
|
|
"S601",
|
|
"S602",
|
|
"S604",
|
|
"S605",
|
|
"S606",
|
|
"S607",
|
|
"S608",
|
|
"S609",
|
|
"S610",
|
|
"S611",
|
|
"S612",
|
|
"S701",
|
|
"S702",
|
|
"SIM101",
|
|
"SIM102",
|
|
"SIM103",
|
|
"SIM105",
|
|
"SIM107",
|
|
"SIM108",
|
|
"SIM109",
|
|
"SIM110",
|
|
"SIM112",
|
|
"SIM113",
|
|
"SIM114",
|
|
"SIM115",
|
|
"SIM116",
|
|
"SIM117",
|
|
"SIM118",
|
|
"SIM201",
|
|
"SIM202",
|
|
"SIM208",
|
|
"SIM210",
|
|
"SIM211",
|
|
"SIM212",
|
|
"SIM220",
|
|
"SIM221",
|
|
"SIM222",
|
|
"SIM223",
|
|
"SIM300",
|
|
"SIM910",
|
|
"SIM911",
|
|
"SLF001",
|
|
"SLOT000",
|
|
"SLOT001",
|
|
"SLOT002",
|
|
"T100",
|
|
"T201",
|
|
"T203",
|
|
"TCH001",
|
|
"TCH002",
|
|
"TCH003",
|
|
"TCH004",
|
|
"TCH005",
|
|
"TCH010",
|
|
"TD004",
|
|
"TD005",
|
|
"TD006",
|
|
"TD007",
|
|
"TID251",
|
|
"TID252",
|
|
"TID253",
|
|
"TRIO100",
|
|
"TRIO105",
|
|
"TRIO109",
|
|
"TRIO110",
|
|
"TRIO115",
|
|
"TRY002",
|
|
"TRY003",
|
|
"TRY004",
|
|
"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",
|
|
"UP041",
|
|
"UP042",
|
|
"W291",
|
|
"W292",
|
|
"W293",
|
|
"W391",
|
|
"W505",
|
|
"W605",
|
|
"YTT101",
|
|
"YTT102",
|
|
"YTT103",
|
|
"YTT201",
|
|
"YTT202",
|
|
"YTT203",
|
|
"YTT204",
|
|
"YTT301",
|
|
"YTT302",
|
|
"YTT303",
|
|
]
|
|
|
|
[lint.per-file-ignores]
|
|
"**/scripts/*" = [
|
|
"INP001",
|
|
"T201",
|
|
]
|
|
"**/tests/**/*" = [
|
|
"PLC1901",
|
|
"PLR2004",
|
|
"PLR6301",
|
|
"S",
|
|
"TID252",
|
|
]
|
|
|
|
[lint.flake8-tidy-imports]
|
|
ban-relative-imports = "all"
|
|
|
|
[lint.isort]
|
|
known-first-party = ["hatch"]
|
|
|
|
[lint.flake8-pytest-style]
|
|
fixture-parentheses = false
|
|
mark-parentheses = false
|