From 00b02376a4abd4739e0c1833242fe117dcc144d3 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Thu, 27 Jul 2023 09:54:30 -0400 Subject: [PATCH] chore: bump pylint (#519) Bumping and improving pylint config a bit. Signed-off-by: Henry Schreiner --- noxfile.py | 6 +++--- pyproject.toml | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/noxfile.py b/noxfile.py index 1c3fbfd2..abf5907c 100644 --- a/noxfile.py +++ b/noxfile.py @@ -30,9 +30,9 @@ def pylint(session: nox.Session) -> None: Run pylint. """ - session.install("pylint~=2.16.0") - session.install("-e", ".") - session.run("pylint", "src", *session.posargs) + session.install("pylint~=2.17.0") + session.install("-e.") + session.run("pylint", "hist", *session.posargs) @nox.session(python=ALL_PYTHONS, reuse_venv=True) diff --git a/pyproject.toml b/pyproject.toml index c6b58675..e8c2f643 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -148,11 +148,11 @@ module = [ ignore_missing_imports = true [tool.pylint] -master.py-version = "3.7" -master.extension-pkg-allow-list = ["boost_histogram._core"] +py-version = "3.7" +extension-pkg-allow-list = ["boost_histogram._core"] reports.output-format = "colorized" similarities.ignore-imports = "yes" -master.jobs = "0" +jobs = "0" messages_control.enable = [ "useless-suppression", ] @@ -178,6 +178,7 @@ messages_control.disable = [ "disallowed-name", "cyclic-import", "redefined-builtin", + "unused-argument", # Handled better by Ruff ] [tool.ruff]