diff --git a/.woodpecker.yml b/.woodpecker.yml index 31b18f2..7889801 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -4,23 +4,23 @@ pipeline: image: python:${PYTHON_VERSION} commands: - pip3 install flake8 - - flake8 opdb/ + - make flake8 mypy: group: lint image: python:${PYTHON_VERSION} commands: - pip3 install mypy - - mypy opdb + - make mypy black: group: lint image: pyfound/black:22.8.0 commands: - - black --check opdb/ + - make black-check test: image: python:${PYTHON_VERSION} commands: - pip3 install . pytest - - pytest + - make pytest matrix: PYTHON_VERSION: diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..abaaf8c --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +black-check: + black --check opdb/ + +black: + black opdb/ + +flake8: + flake8 opdb/ + +mypy: + mypy opdb + +pytest: + pytest + +test: black flake8 mypy pytest + +.PHONY: black black-check flake8 mypy pytest test