Skip to content

Commit

Permalink
Bump pre-commit hooks, pin additionals (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonagestam authored Sep 17, 2022
1 parent 6fb97c3 commit 4586a48
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 16 deletions.
29 changes: 15 additions & 14 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ repos:
- id: debug-statements
- id: detect-private-key
- repo: https://github.com/asottile/pyupgrade
rev: "v2.34.0"
rev: "v2.38.0"
hooks:
- id: pyupgrade
args:
- --py310-plus
- repo: https://github.com/myint/autoflake
rev: "v1.4"
- repo: https://github.com/pycqa/autoflake
rev: "v1.5.3"
hooks:
- id: autoflake
args:
Expand All @@ -29,41 +29,42 @@ repos:
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: "22.3.0"
rev: "22.8.0"
hooks:
- id: black
- repo: https://github.com/asottile/blacken-docs
rev: "v1.12.1"
hooks:
- id: blacken-docs
additional_dependencies: ["black==22.3.0"]
additional_dependencies: ["black==22.8.0"]
- repo: https://gitlab.com/pycqa/flake8
rev: "3.9.2"
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear
- flake8-comprehensions
- flake8-tidy-imports
- flake8-bugbear==22.9.11
- flake8-comprehensions==3.10.0
- repo: https://github.com/sirosen/check-jsonschema
rev: "0.16.0"
rev: "0.18.3"
hooks:
- id: check-github-workflows
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v0.961"
rev: "v0.971"
hooks:
- id: mypy
args: []
args: ["--strict"]
additional_dependencies:
- pytest
- types-setuptools
- pytest==7.1.3
- types-setuptools==65.3.0
- repo: https://github.com/mgedmin/check-manifest
rev: "0.48"
hooks:
- id: check-manifest
args: ["--no-build-isolation"]
additional_dependencies:
- setuptools==65.3.0
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v2.6.2"
rev: "v2.7.1"
hooks:
- id: prettier
types: [markdown]
Expand Down
4 changes: 2 additions & 2 deletions abcattrs/abcattrs.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import abc
from collections.abc import Callable
from collections.abc import Iterable
from functools import partial
from functools import wraps
from typing import Annotated
from typing import Any
from typing import Callable
from typing import Final
from typing import Iterable
from typing import TypeVar
from typing import get_args

Expand Down
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[build-system]
requires = ["setuptools>=65.3.0", "wheel"]
build-backend = "setuptools.build_meta"

[tool.black]
target-version = ["py310"]
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ warn_unreachable = True
exclude = appveyor,.idea,.git,.venv,.tox,__pycache__,*.egg-info,build
max-complexity = 8
max-line-length = 88
# B008: It's ok to instantiate instances as defaults.
# E203: Black does the right thing, flake8 doesn't.
# B024: Abstract base classes should not be expected to introduce abstract methods.
extend-ignore = E203 B008 B024

[isort]
profile = black
Expand Down

0 comments on commit 4586a48

Please sign in to comment.