Skip to content

Commit

Permalink
chore: bump pre-commit
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed Nov 12, 2024
1 parent 7751763 commit 2047da7
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 24 deletions.
9 changes: 5 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ci:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -19,19 +19,19 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/tox-dev/pyproject-fmt
rev: "2.2.4"
rev: "v2.5.0"
hooks:
- id: pyproject-fmt

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.8
rev: v0.7.3
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.2
rev: v1.13.0
hooks:
- id: mypy
files: ^nox/
Expand All @@ -40,6 +40,7 @@ repos:
- colorlog
- dependency-groups>=1.2
- jinja2
- orjson # Faster mypy
- packaging
- importlib_metadata
- tomli
Expand Down
40 changes: 20 additions & 20 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ classifiers = [
"Topic :: Software Development :: Testing",
]
dependencies = [
"argcomplete<4,>=1.9.4",
"colorlog<7,>=2.6.1",
"argcomplete>=1.9.4,<4",
"colorlog>=2.6.1,<7",
"dependency-groups>=1.1",
"packaging>=20.9",
"tomli>=1; python_version<'3.11'",
Expand All @@ -60,6 +60,24 @@ urls.repository = "https://github.com/wntrblm/nox"
scripts.nox = "nox.__main__:main"
scripts.tox-to-nox = "nox.tox_to_nox:main"

[dependency-groups]
dev = [
{ include-group = "docs" },
{ include-group = "test" },
]
test = [
"coverage[toml]>=7.2",
"pytest>=6",
"pytest-cov",
]
docs = [
"myst-parser",
"sphinx>=3",
"sphinx-autobuild",
"sphinx-tabs",
"witchhazel",
]

[tool.hatch]
metadata.allow-ambiguous-features = true # disable normalization (tox-to-nox) for back-compat

Expand Down Expand Up @@ -116,21 +134,3 @@ enable_error_code = [ "ignore-without-code", "redundant-expr", "truthy-bool" ]
[[tool.mypy.overrides]]
module = [ "argcomplete", "colorlog.*", "py", "tox.*" ]
ignore_missing_imports = true

[dependency-groups]
test = [
"coverage[toml]>=7.2",
"pytest>=6.0",
"pytest-cov",
]
docs = [
"myst-parser",
"sphinx>=3.0",
"sphinx-autobuild",
"sphinx-tabs",
"witchhazel",
]
dev = [
{ include-group = "docs" },
{ include-group = "test" },
]

0 comments on commit 2047da7

Please sign in to comment.