mirror of
https://github.com/seemoo-lab/opendrop.git
synced 2026-09-14 15:16:11 -04:00
Add pylint to CI pipeline
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -2,4 +2,5 @@ black
|
||||
flake8
|
||||
flake8-bugbear
|
||||
isort
|
||||
pylint
|
||||
pytest
|
||||
|
||||
Reference in New Issue
Block a user