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:
Jelle Zijlstra
2021-11-19 06:46:51 -08:00
committed by GitHub
parent 1fcb613338
commit 1f1bc6f27c
9 changed files with 52 additions and 68 deletions

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