Compare commits

...

60 Commits
v0.800 ... main

Author SHA1 Message Date
Github Actions
7010b10a09 Mirror: 1.16.0 2025-05-30 08:36:58 +00:00
Github Actions
f40886d54c Mirror: 1.15.0 2025-02-05 08:33:29 +00:00
Github Actions
bbc3dc1f89 Mirror: 1.14.1 2024-12-31 08:34:18 +00:00
Github Actions
648203cec3 Mirror: 1.14.0 2024-12-21 08:33:11 +00:00
Github Actions
f56614daa9 Mirror: 1.13.0 2024-10-23 08:35:14 +00:00
Github Actions
102bbee940 Mirror: 1.12.1 2024-10-20 08:35:03 +00:00
Github Actions
7bdd8c04a7 Mirror: 1.12.0 2024-10-15 08:35:13 +00:00
Github Actions
d4911cfb7f Mirror: 1.11.2 2024-08-25 08:32:17 +00:00
Github Actions
a22ad011a6 Mirror: 1.11.1 2024-07-31 08:30:59 +00:00
Github Actions
81dd99696c Mirror: 1.11.0 2024-07-20 08:31:18 +00:00
Github Actions
6f546f30c2 Mirror: 1.10.1 2024-06-25 08:32:29 +00:00
Github Actions
e5ea667062 Mirror: 1.10.0 2024-04-25 08:31:45 +00:00
Github Actions
9db9854e30 Mirror: 1.9.0 2024-03-09 08:30:51 +00:00
Github Actions
8cd2d40566 Mirror: 1.8.0 2023-12-22 08:31:04 +00:00
Github Actions
4daa14b20c Mirror: 1.7.1 2023-11-24 08:31:11 +00:00
Github Actions
4c8a8c7d5e Mirror: 1.7.0 2023-11-11 08:30:48 +00:00
Github Actions
26de8945da Mirror: 1.6.1 2023-10-18 08:31:23 +00:00
Github Actions
b3b011d594 Mirror: 1.6.0 2023-10-11 08:31:24 +00:00
Github Actions
08cbc46b6e Mirror: 1.5.1 2023-08-17 08:30:55 +00:00
Github Actions
92192ce437 Mirror: 1.5.0 2023-08-11 08:30:51 +00:00
Github Actions
6e63c9e9c6 Mirror: 1.4.1 2023-06-26 08:35:48 +00:00
Github Actions
eef2a6bf05 Mirror: 1.4.0 2023-06-21 08:31:01 +00:00
Github Actions
bd424e49d4 Mirror: 1.3.0 2023-05-11 08:30:57 +00:00
Anthony Sottile
961f38dddd
Merge pull request #85 from hauntsaninja/patch-1
Remove example flag that we must not speak of
2023-04-30 19:03:43 -04:00
Shantanu
ddf9b819d7
Remove example flag that we must not speak of
I just had a user copy-paste this, thinking it was the recommended way to run mypy. I'd prefer if users who blindly copy-paste things didn't pick up a flag that's highly discouraged
2023-04-30 15:54:24 -07:00
Github Actions
b84480de61 Mirror: 1.2.0 2023-04-07 08:31:31 +00:00
Github Actions
b176ead5d5 Mirror: 1.1.1 2023-03-07 08:34:31 +00:00
Github Actions
17a61c4f7a Mirror: 1.0.1 2023-02-18 08:33:02 +00:00
Github Actions
dc6912646c Mirror: 1.0.0 2023-02-07 08:33:29 +00:00
Github Actions
0b037c2b59 Mirror: 0.991 2022-11-15 08:37:07 +00:00
Github Actions
586b4f092e Mirror: 0.990 2022-11-08 08:38:13 +00:00
Github Actions
33f4a30be4 Mirror: 0.982 2022-10-04 08:40:59 +00:00
Anthony Sottile
a27ba8f9ae
Merge pull request #73 from pre-commit/all-repos_autofix_gh-funding-default
Use org-default .github/FUNDING.yml
2022-09-27 14:51:38 -04:00
Anthony Sottile
8962e7e744 Use org-default .github/FUNDING.yml
Committed via https://github.com/asottile/all-repos
2022-09-27 14:50:18 -04:00
Github Actions
22e68754fa Mirror: 0.981 2022-09-27 08:43:08 +00:00
Github Actions
fde4bb992b Mirror: 0.971 2022-07-20 08:37:24 +00:00
Github Actions
efd441f735 Mirror: 0.961 2022-06-07 08:36:44 +00:00
Github Actions
e1ba0b6ec1 Mirror: 0.960 2022-05-26 08:37:35 +00:00
Github Actions
a04404bdf5 Mirror: 0.950 2022-04-28 08:41:22 +00:00
Github Actions
bdfdfda222 Mirror: 0.942 2022-03-24 20:24:09 +00:00
Anthony Sottile
109ec45041
Merge pull request #65 from pre-commit/all-repos_autofix_master-to-main
Update default branch to main
2022-03-24 16:23:53 -04:00
Anthony Sottile
9fc561659f Update default branch to main
Committed via https://github.com/asottile/all-repos
2022-03-24 16:16:24 -04:00
Github Actions
730f5f57bd Mirror: 0.941 2022-03-15 08:34:59 +00:00
Github Actions
d37f9c4f0c Mirror: 0.940 2022-03-12 08:34:13 +00:00
Github Actions
f6f816c65d Mirror: 0.931 2022-01-08 08:41:24 +00:00
Github Actions
886e1c39f0 Mirror: 0.930 2021-12-23 08:41:36 +00:00
Github Actions
a205b57cf6 Mirror: 0.921 2021-12-22 08:41:34 +00:00
Github Actions
5ecfb11dc5 Mirror: 0.920 2021-12-16 08:40:14 +00:00
Anthony Sottile
5cf22ccb77 Mirror: 0.910 2021-10-04 19:59:24 -04:00
Anthony Sottile
b18c8c81a4
Merge pull request #60 from Skylion007/patch-2
Add stubs to mypy checking
2021-10-04 16:56:05 -07:00
Aaron Gokaslan
997646e323
Add stubs to mypy checking 2021-10-04 13:09:07 -04:00
Anthony Sottile
449ace5e55
Merge pull request #51 from WhyNotHugo/patch-1
Mention that auto-fetching stubs is unsupported
2021-06-27 19:10:52 -07:00
Hugo Osvaldo Barrera
679b763341 Mention that auto-fetching stubs is unsupported 2021-06-27 19:36:44 +02:00
Github Actions
44afb68a96 Mirror: 0.910 2021-06-23 08:42:09 +00:00
Github Actions
8254732e2e Mirror: 0.902 2021-06-11 08:40:55 +00:00
Github Actions
0f75d9fd2d Mirror: 0.901 2021-06-09 08:44:37 +00:00
Github Actions
5b7c1c8aa0 Mirror: 0.900 2021-06-09 08:44:37 +00:00
Anthony Sottile
214c33306a
Merge pull request #45 from pre-commit/all-repos_autofix_pre-commit-mirrors-license
Add LICENSE from pre-commit-mirror-maker
2021-04-19 19:13:44 -07:00
Anthony Sottile
08de4c11f9 Add LICENSE from pre-commit-mirror-maker
Committed via https://github.com/asottile/all-repos
2021-04-19 19:11:56 -07:00
Github Actions
b84ce099a2 Mirror: 0.812 2021-02-20 08:40:38 +00:00
7 changed files with 34 additions and 10 deletions

2
.github/FUNDING.yml vendored
View File

@ -1,2 +0,0 @@
github: asottile
open_collective: pre-commit

View File

@ -1,7 +1,7 @@
name: main
on:
push:
branches: [master]
branches: [main]
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=python --args=--ignore-missing-imports,--scripts-are-modules --require-serial
- 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/master --tags
git push origin HEAD:refs/heads/main --tags
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -1,8 +1,10 @@
- id: mypy
name: mypy
description: ''
entry: mypy
language: python
'types': [python]
'types_or': [python, pyi]
args: ["--ignore-missing-imports", "--scripts-are-modules"]
require_serial: true
additional_dependencies: []
minimum_pre_commit_version: '2.9.2'

View File

@ -1 +1 @@
0.800
1.16.0

19
LICENSE Normal file
View 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.

View File

@ -25,7 +25,7 @@ To change the arguments, override the `args` as follows:
```yaml
hooks:
- 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
@ -37,3 +37,6 @@ 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.

View File

@ -1,8 +1,10 @@
from __future__ import annotations
from setuptools import setup
setup(
name='pre_commit_dummy_package',
name='pre_commit_placeholder_package',
version='0.0.0',
install_requires=['mypy==0.800'],
install_requires=['mypy==1.16.0'],
)