Skip to content

Commit

Permalink
chore: add pylint linter
Browse files Browse the repository at this point in the history
  • Loading branch information
jooola committed Aug 1, 2023
1 parent da8baa5 commit 8d81879
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ venv:
venv/bin/pip install -e .[docs,test]

lint: venv
venv/bin/pylint hcloud
venv/bin/mypy hcloud

test: venv
Expand Down
17 changes: 17 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,20 @@ source = ["hcloud"]
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[tool.pylint.main]
py-version = "3.8"
recursive = true
jobs = 0

[tool.pylint.reports]
output-format = "colorized"

[tool.pylint.basic]
good-names = ["i", "j", "k", "ex", "_", "ip", "id"]

[tool.pylint."messages control"]
disable = [
"line-too-long",
"missing-module-docstring",
]
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
],
"test": [
"coverage>=7.2.7,<7.3",
"pylint>=2.17.4,<2.18",
"pytest>=7.4,<7.5",
"mypy>=1.4.1,<1.5",
"types-python-dateutil",
Expand Down

0 comments on commit 8d81879

Please sign in to comment.