Add pylint to CI pipeline

This commit is contained in:
Milan Stute
2020-12-02 16:18:57 +01:00
parent 91e204f8a2
commit adb658d04d
4 changed files with 13 additions and 2 deletions
+4
View File
@@ -34,6 +34,10 @@ jobs:
run: |
pip install flake8
flake8 . --count --show-source --statistics
- name: Lint with pylint
run: |
pip install pylint
pylint --rcfile=setup.cfg opendrop
- name: Test with pytest
run: |
pip install pytest
+5 -2
View File
@@ -1,9 +1,9 @@
.PHONY: ci checkformat lint test autoformat
.PHONY: ci checkformat isort lint pylint test autoformat
VENV=venv
PYTHON=$(VENV)/bin/python3
ci: isort checkformat lint test
ci: isort checkformat lint pylint test
$(VENV): $(VENV)/bin/activate
@@ -23,6 +23,9 @@ checkformat: $(VENV)
lint: $(VENV)
$(PYTHON) -m flake8 . --count --show-source --statistics --exclude $(VENV)
pylint: $(VENV)
$(PYTHON) -m pylint --rcfile=setup.cfg opendrop
isort: $(VENV)
$(PYTHON) -m isort -c opendrop/**.py
+1
View File
@@ -2,4 +2,5 @@ black
flake8
flake8-bugbear
isort
pylint
pytest
+3
View File
@@ -12,3 +12,6 @@ use_parentheses = True
ensure_newline_before_comments = True
line_length = 88
[pylint]
disable = C, R, W0511
max-line-length = 88