diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..57bdc2d6 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,14 @@ +repos: + - repo: https://github.com/psf/black + rev: 21.11b1 + hooks: + - id: black + language_version: python3.9 + +ci: + autofix_commit_msg: '[pre-commit.ci] auto fixes from pre-commit.com hooks' + autofix_prs: true + autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate' + autoupdate_schedule: weekly + skip: [] + submodules: false diff --git a/pyproject.toml b/pyproject.toml index a85b85c7..4a4b5c0e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ include = '\.pyi?$' skip-magic-trailing-comma = true experimental-string-processing = true -exclude = ''' +force-exclude = ''' /( \.git | \.mypy_cache