Skip to content

Commit

Permalink
chore: update pre-commit hooks (#3204)
Browse files Browse the repository at this point in the history
* chore: update pre-commit hooks

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.5 → v0.6.4](astral-sh/ruff-pre-commit@v0.5.5...v0.6.4)
- [github.com/python-jsonschema/check-jsonschema: 0.29.1 → 0.29.2](python-jsonschema/check-jsonschema@0.29.1...0.29.2)
- [github.com/pre-commit/mirrors-mypy: v1.11.0 → v1.11.2](pre-commit/mirrors-mypy@v1.11.0...v1.11.2)
- [github.com/abravalheri/validate-pyproject: v0.18 → v0.19](abravalheri/validate-pyproject@v0.18...v0.19)

* chore: drop some unneeded config

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jim Pivarski <[email protected]>
Co-authored-by: Henry Schreiner <[email protected]>
  • Loading branch information
3 people authored Sep 12, 2024
1 parent 6b39e43 commit a0b3858
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ repos:
additional_dependencies: [pyyaml]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.5
rev: v0.6.4
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand Down Expand Up @@ -62,20 +62,20 @@ repos:
files: ^tests/

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.1
rev: 0.29.2
hooks:
- id: check-github-workflows
args: ["--verbose"]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.11.0
rev: v1.11.2
hooks:
- id: mypy
files: src
additional_dependencies:
- numpy>=1.24

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.18
rev: v0.19
hooks:
- id: validate-pyproject
7 changes: 1 addition & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ filterwarnings = [
]
log_cli_level = "info"

[tool.pylint.master]
[tool.pylint]
py-version = "3.8"
jobs = "0"
ignore-paths = [
Expand Down Expand Up @@ -251,7 +251,6 @@ ignore_errors = true
ignore_missing_imports = true

[tool.ruff]
src = ["src"]
extend-exclude = [
"studies",
"pybind11",
Expand Down Expand Up @@ -289,10 +288,6 @@ ignore = [
"PLC1901", # x == "" can be simplified to not x (empty string is falsey)
"ISC001", # Conflicts with the formatter in 0.1.2
]
unfixable = [
"T20", # Removes print statements
"F841", # Removes unused variables
]
typing-modules = ["awkward._typing"]
external = []
mccabe.max-complexity = 100
Expand Down

0 comments on commit a0b3858

Please sign in to comment.