Skip to content

Commit

Permalink
Add pylint to CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
schmittner committed Dec 2, 2020
1 parent 91e204f commit adb658d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/testpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ black
flake8
flake8-bugbear
isort
pylint
pytest
3 changes: 3 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ use_parentheses = True
ensure_newline_before_comments = True
line_length = 88

[pylint]
disable = C, R, W0511
max-line-length = 88

0 comments on commit adb658d

Please sign in to comment.