mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-20 19:01:15 +08:00
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:
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user