From 6a2624b307de619bdadf8c810125101bb2048a7b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 18 Dec 2024 10:30:18 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Update=20dependency=20?= =?UTF-8?q?pylint=20to=20v3.3.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- poetry.lock | 20 ++++++++++---------- pyproject.toml | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/poetry.lock b/poetry.lock index fffab74..ab5cc25 100644 --- a/poetry.lock +++ b/poetry.lock @@ -124,13 +124,13 @@ frozenlist = ">=1.1.0" [[package]] name = "astroid" -version = "3.2.4" +version = "3.3.6" description = "An abstract syntax tree for Python with inference support." optional = false -python-versions = ">=3.8.0" +python-versions = ">=3.9.0" files = [ - {file = "astroid-3.2.4-py3-none-any.whl", hash = "sha256:413658a61eeca6202a59231abb473f932038fbcbf1666587f66d482083413a25"}, - {file = "astroid-3.2.4.tar.gz", hash = "sha256:0e14202810b30da1b735827f78f5157be2bbd4a7a59b7707ca0bfc2fb4c0063a"}, + {file = "astroid-3.3.6-py3-none-any.whl", hash = "sha256:db676dc4f3ae6bfe31cda227dc60e03438378d7a896aec57422c95634e8d722f"}, + {file = "astroid-3.3.6.tar.gz", hash = "sha256:6aaea045f938c735ead292204afdb977a36e989522b7833ef6fea94de743f442"}, ] [[package]] @@ -744,17 +744,17 @@ files = [ [[package]] name = "pylint" -version = "3.2.7" +version = "3.3.2" description = "python code static checker" optional = false -python-versions = ">=3.8.0" +python-versions = ">=3.9.0" files = [ - {file = "pylint-3.2.7-py3-none-any.whl", hash = "sha256:02f4aedeac91be69fb3b4bea997ce580a4ac68ce58b89eaefeaf06749df73f4b"}, - {file = "pylint-3.2.7.tar.gz", hash = "sha256:1b7a721b575eaeaa7d39db076b6e7743c993ea44f57979127c517c6c572c803e"}, + {file = "pylint-3.3.2-py3-none-any.whl", hash = "sha256:77f068c287d49b8683cd7c6e624243c74f92890f767f106ffa1ddf3c0a54cb7a"}, + {file = "pylint-3.3.2.tar.gz", hash = "sha256:9ec054ec992cd05ad30a6df1676229739a73f8feeabf3912c995d17601052b01"}, ] [package.dependencies] -astroid = ">=3.2.4,<=3.3.0-dev0" +astroid = ">=3.3.5,<=3.4.0-dev0" colorama = {version = ">=0.4.5", markers = "sys_platform == \"win32\""} dill = [ {version = ">=0.3.7", markers = "python_version >= \"3.12\""}, @@ -1101,4 +1101,4 @@ propcache = ">=0.2.0" [metadata] lock-version = "2.0" python-versions = ">=3.11,<3.13" -content-hash = "ef91454e6e4ce3c0067f4d7dd11021c182936ed783a9c2c3e2c5ba5f289e4dbe" +content-hash = "10d0c071eb435d9045d616d12e8a11cc48857f722f54b3f961829d0a16800743" diff --git a/pyproject.toml b/pyproject.toml index 89a6b3b..b21298d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,7 +30,7 @@ codespell = "2.3.0" mypy = "1.13.0" pre-commit = "4.0.1" pre-commit-hooks = "5.0.0" -pylint = "3.2.7" +pylint = "3.3.2" ruff = "0.8.3" yamllint = "1.35.1" async-timeout = "5.0.1" From 7b7397e9eba73206419918408da3e2f2efc11e1d Mon Sep 17 00:00:00 2001 From: Robbin Janssen Date: Wed, 18 Dec 2024 11:59:51 +0100 Subject: [PATCH 2/2] Fix linting --- .pre-commit-config.yaml | 10 +++++----- pyproject.toml | 3 +-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 790249a..b8190a2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,14 +8,14 @@ repos: types: [python] entry: poetry run ruff check --fix require_serial: true - stages: [commit, push, manual] + stages: [pre-commit, pre-push, manual] - id: ruff-format name: Ruff Formatter language: system types: [python] entry: poetry run ruff format require_serial: true - stages: [commit, push, manual] + stages: [pre-commit, pre-push, manual] - id: check-ast name: Check Python AST language: system @@ -35,7 +35,7 @@ repos: language: system types: [text, executable] entry: poetry run check-executables-have-shebangs - stages: [commit, push, manual] + stages: [pre-commit, pre-push, manual] - id: check-json name: Check JSON files language: system @@ -83,7 +83,7 @@ repos: language: system types: [text] entry: poetry run end-of-file-fixer - stages: [commit, push, manual] + stages: [pre-commit, pre-push, manual] - id: mypy name: Static type checking using mypy language: system @@ -113,7 +113,7 @@ repos: language: system types: [text] entry: poetry run trailing-whitespace-fixer - stages: [commit, push, manual] + stages: [pre-commit, pre-push, manual] - id: yamllint name: Check YAML files with yamllint language: system diff --git a/pyproject.toml b/pyproject.toml index b21298d..3f3a885 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -78,6 +78,7 @@ good-names = ["_", "ex", "fp", "i", "id", "j", "k", "on", "Run", "T"] [tool.pylint."MESSAGES CONTROL"] disable = [ "too-few-public-methods", + "too-many-positional-arguments", "duplicate-code", "format", "unsubscriptable-object", @@ -102,8 +103,6 @@ ignored-modules = [ target-version = "py311" lint.select = ["ALL"] lint.ignore = [ - "ANN101", # Self... explanatory - "ANN102", # cls... just as useless "ANN401", # Opinioated warning on disallowing dynamically typed expressions "D203", # Conflicts with other rules "D213", # Conflicts with other rules