From d576b125866fe92bf356899d9370871569990493 Mon Sep 17 00:00:00 2001 From: Val Lorentz Date: Wed, 14 Sep 2022 18:25:50 +0200 Subject: [PATCH] Add Makefile --- .woodpecker.yml | 8 ++++---- Makefile | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 Makefile 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