diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000000..9d8fb717de6 --- /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 00000000000..e69de29bb2d