mirror of
https://github.com/mkdocs/mkdocs.git
synced 2026-03-27 09:58:31 +07:00
Enable more ruff rules
This commit is contained in:
@@ -55,7 +55,7 @@ def main(output=None):
|
|||||||
log.debug(f"Building theme: {theme}")
|
log.debug(f"Building theme: {theme}")
|
||||||
project_dir = os.path.dirname(MKDOCS_CONFIG)
|
project_dir = os.path.dirname(MKDOCS_CONFIG)
|
||||||
out = os.path.join(output, theme)
|
out = os.path.join(output, theme)
|
||||||
command = base_cmd + [out, '--theme', theme]
|
command = [*base_cmd, out, '--theme', theme]
|
||||||
subprocess.check_call(command, cwd=project_dir)
|
subprocess.check_call(command, cwd=project_dir)
|
||||||
|
|
||||||
log.debug("Building test projects.")
|
log.debug("Building test projects.")
|
||||||
@@ -65,7 +65,7 @@ def main(output=None):
|
|||||||
continue
|
continue
|
||||||
log.debug(f"Building test project: {project}")
|
log.debug(f"Building test project: {project}")
|
||||||
out = os.path.join(output, project)
|
out = os.path.join(output, project)
|
||||||
command = base_cmd + [out]
|
command = [*base_cmd, out]
|
||||||
subprocess.check_call(command, cwd=project_dir)
|
subprocess.check_call(command, cwd=project_dir)
|
||||||
|
|
||||||
log.debug(f"Theme and integration builds are in {output}")
|
log.debug(f"Theme and integration builds are in {output}")
|
||||||
|
|||||||
@@ -219,14 +219,15 @@ line_length = 100
|
|||||||
|
|
||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
select = [
|
select = [
|
||||||
"F", "W", "E", "UP", "YTT", "C4", "FA", "PIE", "T20", "RSE", "TCH", "DTZ",
|
"F", "W", "E", "UP", "YTT", "C4", "DTZ", "FA", "ISC", "PIE", "T20", "RSE", "TCH",
|
||||||
"B002", "B003", "B005", "B007", "B009", "B012", "B013", "B014", "B015", "B018", "B020", "B021", "B023", "B026", "B033", "B034", "B905",
|
"B002", "B003", "B005", "B007", "B009", "B012", "B013", "B014", "B015", "B018", "B020", "B021", "B023", "B026", "B033", "B034", "B905",
|
||||||
"COM818",
|
"COM818",
|
||||||
"D200", "D201", "D202", "D204", "D207", "D208", "D209", "D210", "D211", "D213", "D214", "D300", "D301", "D400", "D402", "D403", "D405", "D412", "D414", "D415", "D416", "D417", "D419",
|
"D200", "D201", "D202", "D204", "D207", "D208", "D209", "D210", "D211", "D213", "D214", "D300", "D301", "D400", "D402", "D403", "D405", "D412", "D414", "D415", "D416", "D417", "D419",
|
||||||
"PERF101",
|
"PERF101",
|
||||||
"PGH002", "PGH004", "PGH005",
|
"PGH002", "PGH004", "PGH005",
|
||||||
"PLE", "PLW0120", "PLW0127",
|
"FLY002",
|
||||||
"RUF001", "RUF007", "RUF010", "RUF100", "RUF200",
|
"PLC", "PLE", "PLR0124", "PLR0133", "PLR0206", "PLR0402", "PLR1701", "PLR1722", "PLW0120", "PLW0127", "PLW0129", "PLW0131", "PLW0406", "PLW0602", "PLW0603", "PLW0711",
|
||||||
|
"RUF001", "RUF005", "RUF007", "RUF010", "RUF013", "RUF100", "RUF200",
|
||||||
"SIM101", "SIM107", "SIM201", "SIM202", "SIM208", "SIM210", "SIM211", "SIM300", "SIM401", "SIM910",
|
"SIM101", "SIM107", "SIM201", "SIM202", "SIM208", "SIM210", "SIM211", "SIM300", "SIM401", "SIM910",
|
||||||
]
|
]
|
||||||
ignore = ["E501", "E731"]
|
ignore = ["E501", "E731"]
|
||||||
|
|||||||
Reference in New Issue
Block a user