diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 183bf7db..f64b6253 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,7 @@ exclude: ^(docs/.+|.*lock.*|jupyterlab-extension/.+|.*\.(svg|js|css))|_version.p repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.14.10 + rev: v0.16.10 hooks: - id: ruff args: [--fix, --ignore, D] @@ -33,14 +33,14 @@ repos: - id: trailing-whitespace - repo: https://github.com/codespell-project/codespell - rev: v2.4.1 + rev: v2.4.3 hooks: - id: codespell stages: [pre-commit, commit-msg] args: [--ignore-words-list, "nd,te,ois,dscribe", --check-filenames] - repo: https://github.com/kynan/nbstripout - rev: 0.8.2 + rev: 0.9.1 hooks: - id: nbstripout args: [--drop-empty-cells, --keep-output] diff --git a/crystal_toolkit/components/structure.py b/crystal_toolkit/components/structure.py index b6e67ec4..d62c5dfc 100644 --- a/crystal_toolkit/components/structure.py +++ b/crystal_toolkit/components/structure.py @@ -89,7 +89,7 @@ class StructureMoleculeComponent(MPComponent): def __init__( self, struct_or_mol: ( - None | Structure | StructureGraph | Molecule | MoleculeGraph + Structure | StructureGraph | Molecule | MoleculeGraph | None ) = None, id: str | None = None, className: str = "box",