diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..e46f488 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,38 @@ +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.4.0 + hooks: + - id: trailing-whitespace + name: Trim Trailing Whitespace + language_version: python3 + - id: end-of-file-fixer + name: File Ending + language_version: python3 + - id: debug-statements + name: Debug Statments + language_version: python3 + - id: flake8 + name: Flake8 + language_version: python3 + verbose: true + - id: check-yaml +- repo: https://github.com/asottile/reorder_python_imports + rev: v1.8.0 + hooks: + - id: reorder-python-imports + name: Reorder Python Imports + language_version: python3 +- repo: https://github.com/psf/black + rev: 19.10b0 + hooks: + - id: black + name: Formate with Black + args: [--safe, --quiet, --line-length, "100"] + language_version: python3 + require_serial: true +- repo: https://github.com/asottile/pyupgrade + rev: v1.25.2 + hooks: + - id: pyupgrade + name: Python Package Checks + language_version: python3