From 980dea8334d9b070918963a00709149d7fae1580 Mon Sep 17 00:00:00 2001 From: kreczko Date: Tue, 15 Oct 2024 16:00:35 +0100 Subject: [PATCH] refactor(pylint): move pylint config to one location --- .pylintrc | 12 ++++++++---- pyproject.toml | 14 -------------- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/.pylintrc b/.pylintrc index b0f41c6..30953fc 100644 --- a/.pylintrc +++ b/.pylintrc @@ -52,7 +52,7 @@ persistent=yes # Minimum Python version to use for version dependent checks. Will default to # the version used to run pylint. -py-version=3.10 +py-version=3.11 # When enabled, pylint would attempt to guess common misconfiguration and emit # user-friendly hints instead of false-positive error messages. @@ -88,7 +88,11 @@ disable=raw-checker-failed, use-symbolic-message-instead, import-outside-toplevel, fixme, - super-init-not-called + super-init-not-called, + design, + line-too-long, + missing-module-docstring, + wrong-import-position # Enable the message, report, category or checker with the given id(s). You can # either give multiple identifier separated by comma (,) or put this option @@ -113,7 +117,7 @@ evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / stateme # Set the output format. Available formats are text, parseable, colorized, json # and msvs (visual studio). You can also give a reporter class, e.g. # mypackage.mymodule.MyReporterClass. -output-format=text +output-format=colorized # Tells whether to display a full report or only the messages. reports=no @@ -143,7 +147,7 @@ ignore-comments=yes ignore-docstrings=yes # Imports are removed from the similarity computation -ignore-imports=no +ignore-imports=yes # Signatures are removed from the similarity computation ignore-signatures=no diff --git a/pyproject.toml b/pyproject.toml index 8e351c7..9ade486 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -144,19 +144,5 @@ isort.required-imports = ["from __future__ import annotations"] "tests/**" = ["T20"] "noxfile.py" = ["T20"] - -[tool.pylint] -py-version = "3.11" -ignore-paths = [".*/_version.py"] -reports.output-format = "colorized" -similarities.ignore-imports = "yes" -messages_control.disable = [ - "design", - "fixme", - "line-too-long", - "missing-module-docstring", - "wrong-import-position", -] - [project.scripts] fasthep-flow = "fasthep_flow.cli:main"