From d2b018565a04eab1f01567b5a98a57d7ccb1e24c Mon Sep 17 00:00:00 2001 From: Felix Wallner Date: Mon, 24 Jan 2022 10:38:19 +0100 Subject: [PATCH] added pre-commit configuration; made tests discoverable --- .pre-commit-config.yaml | 22 ++++++++++++++++++++++ tests/__init__.py | 0 2 files changed, 22 insertions(+) create mode 100644 .pre-commit-config.yaml create mode 100644 tests/__init__.py diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..9d8fb717 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,22 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.1.0 + hooks: + - id: check-ast + - id: check-case-conflict + - id: check-merge-conflict + - id: mixed-line-ending + args: [--fix, lf] + - id: name-tests-test + args: [--django] + - repo: local + hooks: + - id: unittest + name: unittest + entry: python -m unittest discover + language: python + types: [python] + pass_filenames: false + stages: [commit] + additional_dependencies: [pydot] + always_run: true diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 00000000..e69de29b