Skip to content

Commit

Permalink
update precommit and satisfy CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pfackeldey committed Feb 24, 2024
1 parent d8dda1b commit fb760d0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ci:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.4.0"
rev: "v4.5.0"
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -20,26 +20,26 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.3"
rev: "v4.0.0-alpha.8"
hooks:
- id: prettier
types_or: [yaml, markdown, html, css, scss, javascript, json]
args: [--prose-wrap=always]

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

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.0.291
rev: v0.2.2
hooks:
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.5.1"
rev: "v1.8.0"
hooks:
- id: mypy
files: src|tests
Expand All @@ -49,6 +49,6 @@ repos:
- jax

- repo: https://github.com/shellcheck-py/shellcheck-py
rev: "v0.9.0.5"
rev: "v0.9.0.6"
hooks:
- id: shellcheck
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ extend-ignore = [
"PLR", # Design related pylint codes
"E501", # Line too long
# "B006", # converts default args to 'None'
"I002", # isort: "from __future__ import annotations"
"I002", # isort: "from __future__ import annotations"
"ISC001", # flake8-implicit-str-concat: Implicit string concatenation"
]
unfixable = [
"F841", # Would remove unused variables
Expand Down
2 changes: 1 addition & 1 deletion src/dilax/modifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def __check_init__(self):
raise ValueError(msg)

def prepare(
self
self,
) -> tuple[dict[str, dict[str, Parameter]], dict[str, dict[str, eqx.Partial]]]:
"""
Helper to automatically create parameters used by `staterror`
Expand Down

0 comments on commit fb760d0

Please sign in to comment.