diff options
author | David Lord <davidism@gmail.com> | 2020-03-06 13:08:04 -0800 |
---|---|---|
committer | David Lord <davidism@gmail.com> | 2020-03-06 13:08:04 -0800 |
commit | c7812823f3e165f2979d888e19a82590b0169917 (patch) | |
tree | 2dec7125e6e05ea864916cb5a764f5831946ea4e /.pre-commit-config.yaml | |
parent | 079f91a2396c5c9264f34f95894259b7b15eb89c (diff) | |
download | click-c7812823f3e165f2979d888e19a82590b0169917.tar.gz |
add pre-commit config
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r-- | .pre-commit-config.yaml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..579fe9c --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,27 @@ +repos: + - repo: https://github.com/asottile/pyupgrade + rev: v2.1.0 + hooks: + - id: pyupgrade + - repo: https://github.com/asottile/reorder_python_imports + rev: v2.0.0 + hooks: + - id: reorder-python-imports + args: ["--application-directories", "src"] + - repo: https://github.com/ambv/black + rev: 19.10b0 + hooks: + - id: black + - repo: https://gitlab.com/pycqa/flake8 + rev: 3.7.9 + hooks: + - id: flake8 + additional_dependencies: + - flake8-bugbear + - flake8-implicit-str-concat + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.5.0 + hooks: + - id: check-byte-order-marker + - id: trailing-whitespace + - id: end-of-file-fixer |