Skip to content

Commit

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

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.7.4 → v0.8.0](astral-sh/ruff-pre-commit@v0.7.4...v0.8.0)

* style: pre-commit fixes

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Nov 26, 2024
1 parent ec029c1 commit dd35ab7
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repos:
- id: end-of-file-fixer

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.7.4"
rev: "v0.8.0"
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand Down
4 changes: 2 additions & 2 deletions src/particle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,22 @@
sys.modules["particle.literals"] = literals

__all__ = (
"PDGID",
"Charge",
"Corsika7ID",
"Geant3ID",
"Inv",
"InvalidParticle",
"PDGID",
"Parity",
"Particle",
"ParticleNotFound",
"PythiaID",
"SpinType",
"Status",
"__version__",
"latex_to_html_name",
"lifetime_to_width",
"width_to_lifetime",
"__version__",
)


Expand Down
4 changes: 2 additions & 2 deletions src/particle/converters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
from .pythia import Pythia2PDGIDBiMap

__all__ = (
"Corsika72PDGIDBiMap",
"EvtGen2PDGNameMap",
"EvtGenName2PDGIDBiMap",
"PDG2EvtGenNameMap",
"Geant2PDGIDBiMap",
"PDG2EvtGenNameMap",
"Pythia2PDGIDBiMap",
"Corsika72PDGIDBiMap",
)


Expand Down
2 changes: 1 addition & 1 deletion src/particle/lhcb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
from .functions import from_lhcb_name, to_lhcb_name

__all__ = (
"LHCbName2PDGIDBiMap",
"from_lhcb_name",
"to_lhcb_name",
"LHCbName2PDGIDBiMap",
)


Expand Down
10 changes: 5 additions & 5 deletions src/particle/particle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@
__all__ = (
"Charge",
"Inv",
"Parity",
"SpinType",
"Status",
"lifetime_to_width",
"width_to_lifetime",
"InvalidParticle",
"Parity",
"Particle",
"ParticleNotFound",
"SpinType",
"Status",
"latex_name_unicode",
"latex_to_html_name",
"lifetime_to_width",
"programmatic_name",
"width_to_lifetime",
)


Expand Down
2 changes: 1 addition & 1 deletion src/particle/particle/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@

__all__ = (
"convert",
"get_from_latex",
"get_from_pdg_extended",
"get_from_pdg_mcd",
"get_from_latex",
"update_from_mcd",
)

Expand Down
2 changes: 1 addition & 1 deletion src/particle/particle/particle.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
from .kinematics import width_to_lifetime
from .utilities import latex_to_html_name, programmatic_name, str_with_unc

__all__ = ("Particle", "ParticleNotFound", "InvalidParticle")
__all__ = ("InvalidParticle", "Particle", "ParticleNotFound")


def __dir__() -> tuple[str, ...]:
Expand Down
32 changes: 16 additions & 16 deletions src/particle/pdgid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,20 @@

__all__ = (
"PDGID",
"is_valid",
"A",
"J",
"L",
"S",
"Z",
"abspid",
"charge",
"has_bottom",
"has_charm",
"has_down",
"has_fundamental_anti",
"has_strange",
"has_top",
"has_up",
"is_Qball",
"is_Rhadron",
"is_SUSY",
Expand All @@ -127,23 +139,11 @@
"is_sm_quark",
"is_special_particle",
"is_technicolor",
"has_down",
"has_up",
"has_strange",
"has_charm",
"has_bottom",
"has_top",
"has_fundamental_anti",
"charge",
"three_charge",
"is_valid",
"j_spin",
"J",
"s_spin",
"S",
"l_spin",
"L",
"A",
"Z",
"s_spin",
"three_charge",
)


Expand Down
2 changes: 1 addition & 1 deletion src/particle/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
from ._compat.typing import Traversable

__all__ = (
"StringOrIO",
"HasOpen",
"HasRead",
"StringOrIO",
)


Expand Down

0 comments on commit dd35ab7

Please sign in to comment.