From d5521b6c7636673c4b32b718521e6605adf5b36b Mon Sep 17 00:00:00 2001 From: Oleh Prypin Date: Sat, 7 Dec 2024 12:38:42 +0100 Subject: [PATCH] Add more lints, update deps --- .tools/copier-answers.yml | 2 +- pyproject.toml | 16 ++++++++++------ requirements/requirements-docs.txt | 12 ++++++------ requirements/requirements-style.txt | 2 +- 4 files changed, 18 insertions(+), 14 deletions(-) diff --git a/.tools/copier-answers.yml b/.tools/copier-answers.yml index 2cd1b85..ab34519 100644 --- a/.tools/copier-answers.yml +++ b/.tools/copier-answers.yml @@ -1,4 +1,4 @@ -_commit: ef9641fa3 +_commit: dc9a469ab _src_path: gh:oprypin/py-project-template copyright_date: '2020' mkdocs: true diff --git a/pyproject.toml b/pyproject.toml index 4d560db..65393af 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -110,27 +110,31 @@ line-length = 100 [tool.ruff.lint] preview = true select = [ - "F", "E", "W", "I", "UP", "YTT", "FBT", "C4", "DTZ", "T10", "FA", "ISC", "PIE", "T20", "RSE", "TCH", + "F", "E", "W", "I", "UP", "YTT", "FBT", "C4", "DTZ", "T10", "FA", "ISC", "PIE", "T20", "RSE", "N803", "N804", "N805", "N806", "N807", "N815", "N816", "N999", "B002", "B003", "B004", "B005", "B007", "B008", "B009", "B010", "B011", "B012", "B013", "B014", "B015", "B016", "B017", "B018", "B019", "B020", "B021", "B022", "B023", "B025", "B026", "B029", "B030", "B031", "B032", "B033", "B034", "B035", "B039", "B905", "B909", "COM818", - "LOG001", "LOG007", "LOG009", + "LOG001", "LOG007", "LOG009", "LOG015", "G001", "G002", "G003", "G010", "G101", "G201", "G202", + "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", "PYI057", "PYI058", "PYI059", "PYI061", "PYI062", "PYI063", "PYI064", "PYI066", "Q004", "RET502", "RET503", "RET504", - "SIM101", "SIM103", "SIM105", "SIM107", "SIM109", "SIM110", "SIM113", "SIM114", "SIM118", "SIM201", "SIM202", "SIM208", "SIM210", "SIM211", "SIM212", "SIM220", "SIM221", "SIM222", "SIM223", "SIM300", "SIM401", "SIM910", "SIM911", + "SIM101", "SIM103", "SIM105", "SIM107", "SIM109", "SIM110", "SIM113", "SIM114", "SIM118", "SIM201", "SIM202", "SIM208", "SIM210", "SIM211", "SIM212", "SIM220", "SIM221", "SIM222", "SIM223", "SIM300", "SIM401", "SIM905", "SIM910", "SIM911", + "TC001", "TC002", "TC003", "TC004", "TC005", "TC006", "TC007", "TC008", "TC010", "PTH201", - "TD004", "TD005", "TD007", + "TD004", "TD005", "TD006", "TD007", "PGH003", "PGH004", "PGH005", "PLC0105", "PLC0131", "PLC0132", "PLC0205", "PLC0206", "PLC0208", "PLC0414", "PLC2401", "PLC2403", "PLC2701", "PLC2801", "PLC3002", "PLR0124", "PLR0133", "PLR0202", "PLR0203", "PLR0206", "PLR0402", "PLR1716", "PLR1722", "PLR1733", "PLR1736", "PLR2044", "PLR6301", "TRY201", "TRY203", "TRY401", "FLY002", "PERF101", "PERF102", "PERF402", "PERF403", - "FURB101", "FURB103", "FURB105", "FURB110", "FURB116", "FURB118", "FURB129", "FURB131", "FURB132", "FURB136", "FURB145", "FURB148", "FURB154", "FURB156", "FURB157", "FURB161", "FURB163", "FURB164", "FURB166", "FURB167", "FURB168", "FURB169", "FURB171", "FURB177", "FURB180", "FURB181", "FURB188", "FURB192", - "RUF001", "RUF002", "RUF003", "RUF005", "RUF006", "RUF007", "RUF008", "RUF009", "RUF010", "RUF012", "RUF013", "RUF015", "RUF016", "RUF017", "RUF018", "RUF019", "RUF020", "RUF021", "RUF022", "RUF023", "RUF024", "RUF026", "RUF028", "RUF029", "RUF030", "RUF031", "RUF032", "RUF033", "RUF034", "RUF100", "RUF101", "RUF200", + "FURB101", "FURB103", "FURB105", "FURB110", "FURB116", "FURB118", "FURB129", "FURB131", "FURB132", "FURB136", "FURB142", "FURB145", "FURB148", "FURB154", "FURB156", "FURB157", "FURB161", "FURB163", "FURB164", "FURB166", "FURB167", "FURB168", "FURB169", "FURB171", "FURB177", "FURB180", "FURB181", "FURB188", "FURB192", + "RUF001", "RUF002", "RUF003", "RUF005", "RUF006", "RUF007", "RUF008", "RUF009", "RUF010", "RUF012", "RUF013", "RUF015", "RUF016", "RUF017", "RUF018", "RUF019", "RUF020", "RUF021", "RUF022", "RUF023", "RUF024", "RUF026", "RUF028", "RUF029", "RUF030", "RUF031", "RUF032", "RUF033", "RUF034", "RUF035", "RUF036", "RUF038", "RUF039", "RUF040", "RUF041", "RUF046", "RUF048", "RUF052", "RUF055", "RUF100", "RUF101", "RUF200", ] ignore = ["E501", "E731"] +[tool.ruff.lint.per-file-ignores] +"tests/**" = ["PLC2701", "PLR6301"] [tool.ruff.lint.flake8-comprehensions] allow-dict-calls-with-keyword-arguments = true [tool.ruff.lint.flake8-type-checking] diff --git a/requirements/requirements-docs.txt b/requirements/requirements-docs.txt index 0379df9..4a8e96c 100644 --- a/requirements/requirements-docs.txt +++ b/requirements/requirements-docs.txt @@ -43,11 +43,11 @@ mkdocs==1.6.1 # mkdocs-material mkdocs-get-deps==0.2.0 # via mkdocs -mkdocs-material==9.5.41 +mkdocs-material==9.5.47 # via hatch.envs.docs mkdocs-material-extensions==1.3.1 # via mkdocs-material -packaging==24.1 +packaging==24.2 # via mkdocs paginate==0.5.7 # via mkdocs-material @@ -57,7 +57,7 @@ platformdirs==4.3.6 # via mkdocs-get-deps pygments==2.18.0 # via mkdocs-material -pymdown-extensions==10.11.2 +pymdown-extensions==10.12 # via # hatch.envs.docs # mkdocs-material @@ -71,13 +71,13 @@ pyyaml==6.0.2 # pyyaml-env-tag pyyaml-env-tag==0.1 # via mkdocs -regex==2024.9.11 +regex==2024.11.6 # via mkdocs-material requests==2.32.3 # via mkdocs-material -six==1.16.0 +six==1.17.0 # via python-dateutil urllib3==2.2.3 # via requests -watchdog==5.0.3 +watchdog==6.0.0 # via mkdocs diff --git a/requirements/requirements-style.txt b/requirements/requirements-style.txt index 97af70e..eaa815c 100644 --- a/requirements/requirements-style.txt +++ b/requirements/requirements-style.txt @@ -4,5 +4,5 @@ # - ruff # -ruff==0.7.0 +ruff==0.8.2 # via hatch.envs.style