Compare commits
116 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
7010b10a09 | ||
![]() |
f40886d54c | ||
![]() |
bbc3dc1f89 | ||
![]() |
648203cec3 | ||
![]() |
f56614daa9 | ||
![]() |
102bbee940 | ||
![]() |
7bdd8c04a7 | ||
![]() |
d4911cfb7f | ||
![]() |
a22ad011a6 | ||
![]() |
81dd99696c | ||
![]() |
6f546f30c2 | ||
![]() |
e5ea667062 | ||
![]() |
9db9854e30 | ||
![]() |
8cd2d40566 | ||
![]() |
4daa14b20c | ||
![]() |
4c8a8c7d5e | ||
![]() |
26de8945da | ||
![]() |
b3b011d594 | ||
![]() |
08cbc46b6e | ||
![]() |
92192ce437 | ||
![]() |
6e63c9e9c6 | ||
![]() |
eef2a6bf05 | ||
![]() |
bd424e49d4 | ||
![]() |
961f38dddd | ||
![]() |
ddf9b819d7 | ||
![]() |
b84480de61 | ||
![]() |
b176ead5d5 | ||
![]() |
17a61c4f7a | ||
![]() |
dc6912646c | ||
![]() |
0b037c2b59 | ||
![]() |
586b4f092e | ||
![]() |
33f4a30be4 | ||
![]() |
a27ba8f9ae | ||
![]() |
8962e7e744 | ||
![]() |
22e68754fa | ||
![]() |
fde4bb992b | ||
![]() |
efd441f735 | ||
![]() |
e1ba0b6ec1 | ||
![]() |
a04404bdf5 | ||
![]() |
bdfdfda222 | ||
![]() |
109ec45041 | ||
![]() |
9fc561659f | ||
![]() |
730f5f57bd | ||
![]() |
d37f9c4f0c | ||
![]() |
f6f816c65d | ||
![]() |
886e1c39f0 | ||
![]() |
a205b57cf6 | ||
![]() |
5ecfb11dc5 | ||
![]() |
5cf22ccb77 | ||
![]() |
b18c8c81a4 | ||
![]() |
997646e323 | ||
![]() |
449ace5e55 | ||
![]() |
679b763341 | ||
![]() |
44afb68a96 | ||
![]() |
8254732e2e | ||
![]() |
0f75d9fd2d | ||
![]() |
5b7c1c8aa0 | ||
![]() |
214c33306a | ||
![]() |
08de4c11f9 | ||
![]() |
b84ce099a2 | ||
![]() |
59a8e37f2a | ||
![]() |
6fd7e2a39e | ||
![]() |
b716753b48 | ||
![]() |
8681a61cc3 | ||
![]() |
a6cc3dcb3a | ||
![]() |
f3bfcb5479 | ||
![]() |
d6e31aeb10 | ||
![]() |
b561d7d305 | ||
![]() |
f687d36b12 | ||
![]() |
323f177eb1 | ||
![]() |
9feadebfdc | ||
![]() |
eef73e213c | ||
![]() |
6d1dbadef1 | ||
![]() |
777600ee21 | ||
![]() |
90f8e12be8 | ||
![]() |
1dc337ae34 | ||
![]() |
11e31ca4c5 | ||
![]() |
977b5b383e | ||
![]() |
8af02ed80d | ||
![]() |
893a7b1957 | ||
![]() |
9ab5f6aba6 | ||
![]() |
4e5c70d9dc | ||
![]() |
7af15c1f24 | ||
![]() |
e10e3aa9e3 | ||
![]() |
55201b4da5 | ||
![]() |
af591c9cc3 | ||
![]() |
8d683f8f09 | ||
![]() |
1bdeeac5da | ||
![]() |
d3592da173 | ||
![]() |
4284bc4ffc | ||
![]() |
95020d86bc | ||
![]() |
f1096ebbef | ||
![]() |
a494166e5f | ||
![]() |
2c69c429c8 | ||
![]() |
c5293a9f1f | ||
![]() |
dd45cb2152 | ||
![]() |
d9a72155af | ||
![]() |
4ef3d46b70 | ||
![]() |
ff0067309d | ||
![]() |
9858586db9 | ||
![]() |
e36a549742 | ||
![]() |
d468a96b6a | ||
![]() |
9dec5f4266 | ||
![]() |
6b3046df97 | ||
![]() |
af759ed23e | ||
![]() |
db3da2e84b | ||
![]() |
0cbf7c4546 | ||
![]() |
27b3047743 | ||
![]() |
6a8d31aefe | ||
![]() |
eaa2543519 | ||
![]() |
c1413175b4 | ||
![]() |
d65e957d69 | ||
![]() |
500f3430aa | ||
![]() |
93a0a1ad97 | ||
![]() |
7330d38502 | ||
![]() |
3ba2161a91 |
23
.github/workflows/main.yml
vendored
Normal file
23
.github/workflows/main.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
name: main
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
schedule:
|
||||||
|
- cron: '30 8 * * *'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: main
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
- uses: actions/setup-python@v1
|
||||||
|
- 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: |
|
||||||
|
git remote set-url origin https://x-access-token:$GH_TOKEN@github.com/$GITHUB_REPOSITORY
|
||||||
|
git push origin HEAD:refs/heads/main --tags
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
@ -1,7 +1,10 @@
|
|||||||
- id: mypy
|
- id: mypy
|
||||||
name: mypy
|
name: mypy
|
||||||
|
description: ''
|
||||||
entry: mypy
|
entry: mypy
|
||||||
language: python
|
language: python
|
||||||
'types': [python]
|
'types_or': [python, pyi]
|
||||||
args: ["--ignore-missing-imports"]
|
args: ["--ignore-missing-imports", "--scripts-are-modules"]
|
||||||
|
require_serial: true
|
||||||
additional_dependencies: []
|
additional_dependencies: []
|
||||||
|
minimum_pre_commit_version: '2.9.2'
|
||||||
|
19
LICENSE
Normal file
19
LICENSE
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
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.
|
15
README.md
15
README.md
@ -25,5 +25,18 @@ To change the arguments, override the `args` as follows:
|
|||||||
```yaml
|
```yaml
|
||||||
hooks:
|
hooks:
|
||||||
- id: mypy
|
- id: mypy
|
||||||
args: [--no-strict-optional, --ignore-missing-imports]
|
args: [--strict, --ignore-missing-imports]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Because `pre-commit` runs `mypy` from an isolated virtualenv (without your
|
||||||
|
dependencies) you may also find it useful to add the typed dependencies to
|
||||||
|
`additional_dependencies` so `mypy` can better perform dynamic analysis:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
hooks:
|
||||||
|
- 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.
|
||||||
|
6
setup.py
6
setup.py
@ -1,8 +1,10 @@
|
|||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
|
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name='pre_commit_dummy_package',
|
name='pre_commit_placeholder_package',
|
||||||
version='0.0.0',
|
version='0.0.0',
|
||||||
install_requires=['mypy==0.239'],
|
install_requires=['mypy==1.16.0'],
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user