Skip to content

Commit

Permalink
Pre-commit Autoupdate; fix pdbp init
Browse files Browse the repository at this point in the history
  • Loading branch information
timmens committed Nov 13, 2024
1 parent 1fef38d commit ef2dcbd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ repos:
hooks:
- id: yamllint
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.2
rev: v0.7.3
hooks:
# Run the linter.
- id: ruff
Expand Down
6 changes: 3 additions & 3 deletions pixi.lock

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

4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ extend-ignore = [
# Private member accessed: `_stochastic_info`
"SLF001",

# Use `contextlib.suppress(ImportError)` instead of `try`-`except`-`pass`
"SIM105",

# long messages outside the exception class
"TRY003",

Expand Down Expand Up @@ -247,6 +250,7 @@ markers = [
"illustrative: Tests are designed for illustrative purposes",
]
norecursedirs = ["docs", ".envs"]
addopts = ["--pdbcls=pdbp:Pdb"]


# ======================================================================================
Expand Down
4 changes: 1 addition & 3 deletions src/lcm/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import contextlib

try:
import pdbp # noqa: F401
except ImportError:
contextlib.suppress(Exception)
pass

from lcm import mark
from lcm.grids import DiscreteGrid, LinspaceGrid, LogspaceGrid
Expand Down

0 comments on commit ef2dcbd

Please sign in to comment.