Compare commits
No commits in common. "main" and "v0.902" have entirely different histories.
2
.github/FUNDING.yml
vendored
Normal file
2
.github/FUNDING.yml
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
github: asottile
|
||||
open_collective: pre-commit
|
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
@ -1,7 +1,7 @@
|
||||
name: main
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
branches: [master]
|
||||
schedule:
|
||||
- cron: '30 8 * * *'
|
||||
|
||||
@ -15,9 +15,9 @@ jobs:
|
||||
- run: pip install pre-commit-mirror-maker
|
||||
- run: git config --global user.name 'Github Actions'
|
||||
- run: git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
|
||||
- run: pre-commit-mirror . --language=python --package-name=mypy --types-or=python --types-or=pyi --args=--ignore-missing-imports,--scripts-are-modules --require-serial
|
||||
- run: pre-commit-mirror . --language=python --package-name=mypy --types=python --args=--ignore-missing-imports,--scripts-are-modules --require-serial
|
||||
- run: |
|
||||
git remote set-url origin https://x-access-token:$GH_TOKEN@github.com/$GITHUB_REPOSITORY
|
||||
git push origin HEAD:refs/heads/main --tags
|
||||
git push origin HEAD:refs/heads/master --tags
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
@ -1,10 +1,8 @@
|
||||
- id: mypy
|
||||
name: mypy
|
||||
description: ''
|
||||
entry: mypy
|
||||
language: python
|
||||
'types_or': [python, pyi]
|
||||
'types': [python]
|
||||
args: ["--ignore-missing-imports", "--scripts-are-modules"]
|
||||
require_serial: true
|
||||
additional_dependencies: []
|
||||
minimum_pre_commit_version: '2.9.2'
|
||||
|
@ -25,7 +25,7 @@ To change the arguments, override the `args` as follows:
|
||||
```yaml
|
||||
hooks:
|
||||
- id: mypy
|
||||
args: [--strict, --ignore-missing-imports]
|
||||
args: [--no-strict-optional, --ignore-missing-imports]
|
||||
```
|
||||
|
||||
Because `pre-commit` runs `mypy` from an isolated virtualenv (without your
|
||||
@ -37,6 +37,3 @@ dependencies) you may also find it useful to add the typed dependencies to
|
||||
- id: mypy
|
||||
additional_dependencies: [tokenize-rt==3.2.0]
|
||||
```
|
||||
|
||||
Note that using the `--install-types` is problematic. Mutating the pre-commit
|
||||
environment at runtime breaks cache and will break parallel builds.
|
||||
|
Loading…
Reference in New Issue
Block a user