--- a +++ b/.pre-commit-config.yaml @@ -0,0 +1,17 @@ +default_stages: + - commit + +repos: +# these lines taken from https://pre-commit.com/ +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.3.0 + hooks: + - id: end-of-file-fixer + - id: trailing-whitespace + +- repo: https://github.com/PyCQA/autoflake + rev: v2.1.1 + hooks: + - id: autoflake + args: + - -i