Skip to content

Commit

Permalink
👷: update pre-commit hooks (#104)
Browse files Browse the repository at this point in the history
updates:
- [github.com/commitizen-tools/commitizen: v3.30.0 → v4.0.0](commitizen-tools/commitizen@v3.30.0...v4.0.0)
- [github.com/python-jsonschema/check-jsonschema: 0.29.4 → 0.30.0](python-jsonschema/check-jsonschema@0.29.4...0.30.0)
- [github.com/astral-sh/ruff-pre-commit: v0.7.2 → v0.8.1](astral-sh/ruff-pre-commit@v0.7.2...v0.8.1)
- [github.com/rbubley/mirrors-prettier: v3.3.3 → v3.4.1](rbubley/mirrors-prettier@v3.3.3...v3.4.1)
- [github.com/abravalheri/validate-pyproject: v0.22 → v0.23](abravalheri/validate-pyproject@v0.22...v0.23)

Signed-off-by: nstarman <[email protected]>
Co-authored-by: nstarman <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and nstarman authored Dec 3, 2024
1 parent 0fd786b commit af41c77
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 52 deletions.
3 changes: 3 additions & 0 deletions .czrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "cz-gitmoji"
}
19 changes: 11 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
ci:
autoupdate_commit_msg: "chore: update pre-commit hooks"
autofix_commit_msg: "style: pre-commit fixes"
autoupdate_schedule: "monthly"
autoupdate_schedule: "quarterly"
autoupdate_commit_msg: "👷: update pre-commit hooks"
autofix_commit_msg: "🎨: pre-commit fixes"

default_stages: [pre-commit, pre-push]

repos:
- repo: https://github.com/commitizen-tools/commitizen
rev: v3.30.0
rev: v4.0.0
hooks:
- id: commitizen
- id: commitizen-branch
stages: [pre-push]
args:
- "--"
- "--config-file=.czrc"

- repo: meta
hooks:
Expand Down Expand Up @@ -46,14 +49,14 @@ repos:
- id: rst-inline-touching-normal

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.4
rev: 0.30.0
hooks:
- id: check-dependabot
- id: check-github-workflows
- id: check-readthedocs

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.7.2"
rev: "v0.8.1"
hooks:
# Run the linter
- id: ruff
Expand All @@ -70,7 +73,7 @@ repos:
additional_dependencies: [black==23.*]

- repo: https://github.com/rbubley/mirrors-prettier
rev: "v3.3.3"
rev: "v3.4.1"
hooks:
- id: prettier
types_or: [yaml, markdown, html, css, scss, javascript, json]
Expand Down Expand Up @@ -101,7 +104,7 @@ repos:
- tomli

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.22
rev: v0.23
hooks:
- id: validate-pyproject

Expand Down
9 changes: 5 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@
"jinja2==3.1"
]
test = [
"pytest >=6",
"pytest-cov >=3",
"pytest >= 8.3",
"pytest-cov >= 3",
"pytest-github-actions-annotate-failures", # only applies to GH Actions
"sybil >= 7.1.0",
]
Expand Down Expand Up @@ -127,7 +127,7 @@


[tool.pytest.ini_options]
minversion = "6.0"
minversion = "8.3"
addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"]
xfail_strict = true
filterwarnings = [
Expand All @@ -148,7 +148,6 @@
ignore = [
"A001", # Variable is shadowing a Python builtin
"A002", # Argument is shadowing a Python builtin
"ANN101", # Missing type annotation for self in method
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed # TODO
"ARG001", # Unused function argument
"COM812", # Missing trailing comma
Expand All @@ -161,11 +160,13 @@
"FIX002", # Line contains TODO, consider resolving the issue
"PD011", # Pandas
"PYI041", # Use `float` instead of `int | float`
"RUF022", # `__all__` is not sorted
"TD002", # Missing author in TODO; try: `# TODO(<author_name>): .
"TD003", # Missing issue link on the line following this TODO
]

[tool.ruff.lint.per-file-ignores]
"src/quaxed/**" = ["A004"]
"tests/**" = ["ANN", "INP001", "PLR0913", "PLR2004", "S101", "T20", "TID252"]
"__init__.py" = ["F403"]
"noxfile.py" = ["T20"]
Expand Down
76 changes: 36 additions & 40 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit af41c77

Please sign in to comment.