Skip to content

Commit

Permalink
chore(deps): update pre-commit hooks (#577)
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.2.2 → v0.3.2](astral-sh/ruff-pre-commit@v0.2.2...v0.3.2)
- [github.com/pre-commit/mirrors-mypy: v1.8.0 → v1.9.0](pre-commit/mirrors-mypy@v1.8.0...v1.9.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 Mar 13, 2024
1 parent 01b6c8a commit d81e951
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ repos:
- id: end-of-file-fixer

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.2.2"
rev: "v0.3.2"
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
- id: ruff-format
types_or: [python, pyi, jupyter]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
rev: v1.9.0
hooks:
- id: mypy
files: src
Expand Down
1 change: 1 addition & 0 deletions admin/dump_pdgid_to_corsika7.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Script to generate the pdgid_to_corsika7id.csv conversion table from Corsika7ID to PDGID and vice-versa.
This script should be kept, so the table won't need to be hand-edited in the future.
"""

from __future__ import annotations

import contextlib
Expand Down
1 change: 0 additions & 1 deletion src/particle/corsika/corsika7id.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
Corsika8 uses Geant3 Particle IDs.
"""


from __future__ import annotations

import csv
Expand Down
1 change: 0 additions & 1 deletion src/particle/geant/geant3id.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
follows the PDG rules, hence uses the standard PDG IDs.
"""


from __future__ import annotations

import csv
Expand Down
1 change: 0 additions & 1 deletion src/particle/particle/kinematics.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
Functions relevant to particle kinematics.
"""


from __future__ import annotations

from hepunits.constants import hbar
Expand Down
1 change: 0 additions & 1 deletion src/particle/pdgid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
"""


from __future__ import annotations

from .functions import (
Expand Down
1 change: 0 additions & 1 deletion src/particle/pdgid/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
- HepPDT and HepPID versions 3.04.01.
"""


from __future__ import annotations

from enum import IntEnum
Expand Down
1 change: 0 additions & 1 deletion src/particle/pdgid/pdgid.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
All methods of HepPID are implemented in a Pythonic version, see the functions module.
"""


from __future__ import annotations

from inspect import isfunction
Expand Down
1 change: 0 additions & 1 deletion src/particle/pythia/pythiaid.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
Class representing a Pythia ID.
"""


from __future__ import annotations

import csv
Expand Down
1 change: 0 additions & 1 deletion src/particle/shared_literals.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
See the particle.literals and the pdgid.literals submodules for the actually exposed aliases.
"""


from __future__ import annotations

from .particle import Particle
Expand Down

0 comments on commit d81e951

Please sign in to comment.