From a207cbc1175e36372667de048cf32c27a1966f5c Mon Sep 17 00:00:00 2001 From: Oleh Prypin Date: Sat, 3 Feb 2024 22:51:04 +0100 Subject: [PATCH] Template upgrade --- .tools/copier-answers.yml | 2 +- pyproject.toml | 11 ++++++----- requirements/requirements-style.txt | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.tools/copier-answers.yml b/.tools/copier-answers.yml index 6c7a729..3671f3e 100644 --- a/.tools/copier-answers.yml +++ b/.tools/copier-answers.yml @@ -1,4 +1,4 @@ -_commit: 3ab0a694c +_commit: 0903da199 _src_path: gh:oprypin/py-project-template copyright_date: '2020' mkdocs: true diff --git a/pyproject.toml b/pyproject.toml index 675db53..4014ce1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -94,17 +94,18 @@ type = "pip-compile" [tool.ruff] line-length = 100 -lint.preview = true +[tool.ruff.lint] +preview = true select = [ "F", "E", "W", "I", "UP", "YTT", "C4", "DTZ", "T10", "FA", "ISC", "PIE", "T20", "RSE", "TCH", "N803", "N804", "N805", "N806", "N807", "N815", "N816", "N999", - "B002", "B003", "B005", "B007", "B008", "B009", "B010", "B011", "B012", "B013", "B014", "B015", "B016", "B017", "B018", "B020", "B021", "B022", "B023", "B025", "B026", "B029", "B030", "B031", "B032", "B033", "B034", "B905", + "B002", "B003", "B005", "B007", "B008", "B009", "B010", "B011", "B012", "B013", "B014", "B015", "B016", "B017", "B018", "B020", "B021", "B022", "B023", "B025", "B026", "B029", "B030", "B031", "B032", "B033", "B034", "B035", "B905", "COM818", "G001", "G010", "G202", "Q004", "RET502", "RET504", "SIM101", "SIM103", "SIM105", "SIM107", "SIM118", "SIM201", "SIM202", "SIM208", "SIM210", "SIM211", "SIM212", "SIM220", "SIM221", "SIM222", "SIM223", "SIM300", "SIM401", "SIM910", "SIM911", - "PGH002", "PGH003", "PGH004", "PGH005", + "PGH003", "PGH004", "PGH005", "PLC0105", "PLC0131", "PLC0132", "PLC0205", "PLC0208", "PLC0414", "PLC2401", "PLC2403", "PLC2701", "PLC2801", "PLC3002", "PLE0100", "PLE0101", "PLE0116", "PLE0117", "PLE0118", "PLE0241", "PLE0302", "PLE0307", "PLE0604", "PLE0605", "PLE0704", "PLE1132", "PLE1142", "PLE1205", "PLE1206", "PLE1300", "PLE1307", "PLE1310", "PLE1507", "PLE1700", "PLE2502", "PLE2510", "PLE2512", "PLE2513", "PLE2514", "PLE2515", "PLR0124", "PLR0133", "PLR0206", "PLR0402", "PLR1701", "PLR1722", "PLR1733", "PLR1736", @@ -114,10 +115,10 @@ select = [ "PERF101", "PERF102", "PERF402", "PERF403", "FURB105", "FURB118", "FURB131", "FURB132", "FURB148", "FURB163", "FURB167", "FURB168", "FURB169", "LOG001", "LOG009", - "RUF001", "RUF005", "RUF007", "RUF008", "RUF009", "RUF010", "RUF011", "RUF013", "RUF015", "RUF016", "RUF017", "RUF018", "RUF019", "RUF020", "RUF021", "RUF022", "RUF100", "RUF200", + "RUF001", "RUF005", "RUF007", "RUF008", "RUF009", "RUF010", "RUF013", "RUF015", "RUF016", "RUF017", "RUF018", "RUF019", "RUF020", "RUF021", "RUF022", "RUF100", "RUF200", ] ignore = ["E501", "E731"] -[tool.ruff.flake8-comprehensions] +[tool.ruff.lint.flake8-comprehensions] allow-dict-calls-with-keyword-arguments = true [tool.mypy] diff --git a/requirements/requirements-style.txt b/requirements/requirements-style.txt index aede324..103d940 100644 --- a/requirements/requirements-style.txt +++ b/requirements/requirements-style.txt @@ -4,5 +4,5 @@ # - ruff # -ruff==0.1.14 +ruff==0.2.0 # via hatch.envs.style