diff --git a/Makefile b/Makefile deleted file mode 100644 index 11e6a45..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -PYTHON=python3 - -.PHONY: install-all-deps -install-all-deps: - $(PYTHON) -m pip install -r requirements-hacking.txt - $(PYTHON) -m pip install . - -.PHONY: unittests -unittests: - $(PYTHON) -c 'import unittest; \ - suite=unittest.TestLoader().discover("./src"); \ - unittest.TextTestRunner().run(suite)' - -.PHONY: lint -lint: - ./hacking/lint - - -.PHONY: reformat -reformat: - ./hacking/lint --reformat diff --git a/hacking/configure-hooks.sh b/hacking/configure-hooks.sh deleted file mode 100755 index af10349..0000000 --- a/hacking/configure-hooks.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -wd=$(dirname $0)/.. - -pip install --user -r "${wd}"/requirements-hacking.txt -ln -sf ../../hacking/lint "${wd}"/.git/hooks/pre-commit diff --git a/hacking/lint b/hacking/lint deleted file mode 100755 index 7d7acb3..0000000 --- a/hacking/lint +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -lint_args="--check --diff" - -usage() { - echo "Usage: $0 [-r | --reformat]" -} - -PARSED_ARGS=$(getopt -a -n lint -o r --long reformat -- "$@") -if [ "$?" != "0" ] -then - exec 1>&2 - usage - exit 2 -fi - -eval set -- "$PARSED_ARGS" -while : -do - case $1 in - -r | --reformat) lint_args=""; shift ;; - --) shift; break;; - esac -done - -black $lint_args . diff --git a/requirements-hacking.txt b/requirements-hacking.txt deleted file mode 100644 index 7e66a17..0000000 --- a/requirements-hacking.txt +++ /dev/null @@ -1 +0,0 @@ -black