Skip to content

Commit

Permalink
refactor(pylint): move pylint config to one location
Browse files Browse the repository at this point in the history
  • Loading branch information
kreczko committed Oct 15, 2024
1 parent 715fd3d commit 980dea8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 18 deletions.
12 changes: 8 additions & 4 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
14 changes: 0 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 980dea8

Please sign in to comment.