add pre-commit config (#6341)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Akuli <akuviljanen17@gmail.com>
This commit is contained in:
authored and GitHub committed 2021-11-19 16:46:51 +02:00
1 parent 1fcb613338
commit 1f1bc6f27c
9 files changed
+52 -68

No files matched your search

+2 -2
View File
@@ -44,7 +44,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: pip install $(grep black requirements-tests-py3.txt)
- run: black --check --diff stdlib stubs
- run: black --check --diff scripts stdlib stubs tests
isort:
name: Check imports with isort
@@ -53,7 +53,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: pip install $(grep isort requirements-tests-py3.txt)
- run: isort --check-only --diff stdlib stubs
- run: isort --check-only --diff scripts stdlib stubs tests
pytype:
name: Run pytype against the stubs