Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#383)
Browse files Browse the repository at this point in the history
updates:
- [github.com/psf/black: 21.5b2 → 21.6b0](psf/black@21.5b2...21.6b0)
- [github.com/pre-commit/mirrors-mypy: v0.812 → v0.910](pre-commit/mirrors-mypy@v0.812...v0.910)

* style: don't check versions
* chore: install additional mypy types

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: W. Augusto Andreoli <andreoliwa@gmail.com>
  • Loading branch information
pre-commit-ci[bot] and andreoliwa committed Jul 8, 2021
1 parent c726ea2 commit f3c8c9d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
9 changes: 7 additions & 2 deletions .pre-commit-config.yaml
Expand Up @@ -37,7 +37,7 @@ repos:
hooks:
- id: pyupgrade
- repo: https://github.com/psf/black
rev: 21.5b2
rev: 21.6b0
hooks:
- id: black
args: [--safe, --quiet]
Expand Down Expand Up @@ -82,9 +82,14 @@ repos:
yesqa,
]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.812
rev: v0.910
hooks:
- id: mypy
# Install additional types to fix new warnings that appeared on v0.910:
# https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
# "using --install-types is problematic"
# see https://github.com/pre-commit/mirrors-mypy#using-mypy-with-pre-commit
additional_dependencies: [types-freezegun, types-toml, types-attrs, types-requests, types-python-slugify]
# Run pylint also with tox, because local repos don't seem to work well with https://pre-commit.ci/
# Note for future attempts with pylint as a pre-commit hook:
# Using https://github.com/PyCQA/pylint doesn't work, it's a huge pain dealing with [MASTER]init-hook.
Expand Down
3 changes: 0 additions & 3 deletions docs/examples.rst
Expand Up @@ -45,12 +45,10 @@ Contents of `styles/black.toml <https://github.com/andreoliwa/nitpick/blob/v0.26
[[".pre-commit-config.yaml".repos]]
yaml = """
- repo: https://github.com/psf/black
rev: 21.5b2
hooks:
- id: black
args: [--safe, --quiet]
- repo: https://github.com/asottile/blacken-docs
rev: v1.10.0
hooks:
- id: blacken-docs
additional_dependencies: [black==21.5b2]
Expand Down Expand Up @@ -219,7 +217,6 @@ Contents of `styles/mypy.toml <https://github.com/andreoliwa/nitpick/blob/v0.26.
[[".pre-commit-config.yaml".repos]]
yaml = """
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.812
hooks:
- id: mypy
"""
Expand Down
2 changes: 0 additions & 2 deletions styles/black.toml
Expand Up @@ -4,12 +4,10 @@ line-length = 120
[[".pre-commit-config.yaml".repos]]
yaml = """
- repo: https://github.com/psf/black
rev: 21.5b2
hooks:
- id: black
args: [--safe, --quiet]
- repo: https://github.com/asottile/blacken-docs
rev: v1.10.0
hooks:
- id: blacken-docs
additional_dependencies: [black==21.5b2]
Expand Down
1 change: 0 additions & 1 deletion styles/mypy.toml
Expand Up @@ -18,7 +18,6 @@ warn_unused_ignores = true
[[".pre-commit-config.yaml".repos]]
yaml = """
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.812
hooks:
- id: mypy
"""

0 comments on commit f3c8c9d

Please sign in to comment.