Compare commits
No commits in common. "main" and "v0.781" have entirely different histories.
10
.github/workflows/main.yml
vendored
10
.github/workflows/main.yml
vendored
@ -1,7 +1,7 @@
|
|||||||
name: main
|
name: main
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [master]
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '30 8 * * *'
|
- cron: '30 8 * * *'
|
||||||
|
|
||||||
@ -13,11 +13,11 @@ jobs:
|
|||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- uses: actions/setup-python@v1
|
- uses: actions/setup-python@v1
|
||||||
- run: pip install pre-commit-mirror-maker
|
- run: pip install pre-commit-mirror-maker
|
||||||
- run: git config --global user.name 'Github Actions'
|
- run: git config --global user.name pre-commit
|
||||||
- run: git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
|
- run: git config --global user.email pre-commit@example.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: |
|
- run: |
|
||||||
git remote set-url origin https://x-access-token:$GH_TOKEN@github.com/$GITHUB_REPOSITORY
|
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:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
@ -1,10 +1,8 @@
|
|||||||
- id: mypy
|
- id: mypy
|
||||||
name: mypy
|
name: mypy
|
||||||
description: ''
|
|
||||||
entry: mypy
|
entry: mypy
|
||||||
language: python
|
language: python
|
||||||
'types_or': [python, pyi]
|
'types': [python]
|
||||||
args: ["--ignore-missing-imports", "--scripts-are-modules"]
|
args: ["--ignore-missing-imports", "--scripts-are-modules"]
|
||||||
require_serial: true
|
require_serial: true
|
||||||
additional_dependencies: []
|
additional_dependencies: []
|
||||||
minimum_pre_commit_version: '2.9.2'
|
|
||||||
|
19
LICENSE
19
LICENSE
@ -1,19 +0,0 @@
|
|||||||
Copyright (c) 2014 Anthony Sottile
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in
|
|
||||||
all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
||||||
THE SOFTWARE.
|
|
@ -25,7 +25,7 @@ To change the arguments, override the `args` as follows:
|
|||||||
```yaml
|
```yaml
|
||||||
hooks:
|
hooks:
|
||||||
- id: mypy
|
- 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
|
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
|
- id: mypy
|
||||||
additional_dependencies: [tokenize-rt==3.2.0]
|
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.
|
|
||||||
|
6
setup.py
6
setup.py
@ -1,10 +1,8 @@
|
|||||||
from __future__ import annotations
|
|
||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='pre_commit_placeholder_package',
|
name='pre_commit_dummy_package',
|
||||||
version='0.0.0',
|
version='0.0.0',
|
||||||
install_requires=['mypy==1.16.0'],
|
install_requires=['mypy==0.781'],
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user