Skip to content
Snippets Groups Projects
Commit def1f589 authored by Moul's avatar Moul
Browse files

[mod] #135: Move pylint rules from the Makefile to the pyproject.toml

Join lines, '/' at the end is no longer necessary
http://pylint.pycqa.org/en/latest/whatsnew/2.5.html?highlight=pyproject#other-changes

Disable R0401 additionnaly for duniterpy and tests in addition to example folder
parent d398d680
No related branches found
No related tags found
No related merge requests found
...@@ -23,9 +23,7 @@ isort: ...@@ -23,9 +23,7 @@ isort:
# check code errors # check code errors
pylint: pylint:
poetry run pylint --disable=C,R0902,R0903,R0904,R0912,R0913,R0914,R0915,W0613,R0801 --enable=C0121,C0202,C0321 --jobs=0 duniterpy/ poetry run pylint duniterpy tests examples
poetry run pylint --disable=C,R0902,R0903,R0904,R0912,R0913,R0914,R0915,W0613,R0801 --enable=C0121,C0202,C0321 --jobs=0 tests/
poetry run pylint --disable=C,R0902,R0903,R0904,R0912,R0913,R0914,R0915,W0613,E0401,R0801 --enable=C0121,C0202,C0321 --jobs=0 examples/
# check format # check format
check-format: check-format:
......
...@@ -46,3 +46,8 @@ sphinx_rtd_theme = "^0.5.0" ...@@ -46,3 +46,8 @@ sphinx_rtd_theme = "^0.5.0"
[tool.isort] [tool.isort]
profile = "black" profile = "black"
src_paths = ["duniterpy", "tests", "examples"] src_paths = ["duniterpy", "tests", "examples"]
[tool.pylint.messages_control]
disable = "C,R0401,R0801,R0902,R0903,R0904,R0912,R0913,R0914,R0915,W0613"
enable = "C0121,C0202,C0321"
jobs = 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment