Skip to content
Snippets Groups Projects
Commit 8fc75359 authored by Deaktivert bruker's avatar Deaktivert bruker
Browse files

build: run pylint as part of lint task

Pylint analyses the code for common bugs.

Fixes: GREG-16
parent ecdb4aa2
No related branches found
No related tags found
1 merge request!8build: introduce pylint, pyproject.toml, and formatting lints
...@@ -2,6 +2,7 @@ BLACK ?= black -q ...@@ -2,6 +2,7 @@ BLACK ?= black -q
MYPY ?= mypy MYPY ?= mypy
PIP ?= pip -q PIP ?= pip -q
POETRY ?= poetry POETRY ?= poetry
PYLINT ?= pylint -sn
PYTHON ?= python3.9 PYTHON ?= python3.9
VENV ?= venv VENV ?= venv
...@@ -34,6 +35,7 @@ test: $(VENV) ...@@ -34,6 +35,7 @@ test: $(VENV)
.PHONY: lint .PHONY: lint
lint: $(VENV) lint: $(VENV)
$(venv) $(poetry) -q check $(venv) $(poetry) -q check
$(venv) $(PYLINT) $(PACKAGES)
$(venv) $(BLACK) --check --diff $(PACKAGES) $(venv) $(BLACK) --check --diff $(PACKAGES)
.PHONY: fmt .PHONY: fmt
......
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