Skip to content

Commit

Permalink
Update pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Jun 28, 2024
1 parent 08502ba commit f345012
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-added-large-files
args: [--maxkb=8000]
Expand Down Expand Up @@ -32,18 +32,18 @@ repos:
- id: yamlfmt

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.1
rev: v0.5.0
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.1
rev: v0.5.0
hooks:
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
rev: v1.10.1
hooks:
- id: mypy
additional_dependencies: [numpy, types-PyYAML, pandas>=2.0.3]
Expand Down
2 changes: 1 addition & 1 deletion pynonthermal/axelrod.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def get_lotz_xs_ionisation(atomic_number, ion_stage, electron_binding, ionpot_ev
assert electron_loop == 8
# print("Z = %d, ion_stage = %d\n", get_element(element), get_ion_stage(element, ion));

p = use3 if use2 < use3 else use2
p = max(use2, use3)

if 0.5 * beta**2 * ME * CLIGHT**2 > p:
part_sigma += (
Expand Down

0 comments on commit f345012

Please sign in to comment.