From fd2df3234aa961c3dc4405a0ae9189c678002b09 Mon Sep 17 00:00:00 2001 From: Daniel <daniel@harvey> Date: Tue, 24 Nov 2020 09:32:59 +0100 Subject: [PATCH] ENH: Add Makefile. --- Makefile | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c7c2b77 --- /dev/null +++ b/Makefile @@ -0,0 +1,37 @@ +# ** header v3.0 +# This file is a part of the CaosDB Project. +# +# Copyright (C) 2020 IndiScale GmbH <info@indiscale.com> +# Copyright (C) 2020 Daniel Hornung <d.hornung@indiscale.com> +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <https://www.gnu.org/licenses/>. +# +# ** end header + +# Just a collection of scripts + +.PHONY: all autopep8 test + +# Do the integration tests. +# Accepts freestyle arguments like so: +# `make test test_opts=test_foo.py -k test_function` +test: + cd tests && pytest $(test_opts) + +# Run the tests through autopep8. +autopep8: + autopep8 -ri tests + +# Meta target to call the other targets. +all: autopep8 test -- GitLab