Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#25)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 22.6.0 → 22.8.0](psf/black@22.6.0...22.8.0)
- [github.com/PyCQA/flake8: 4.0.1 → 5.0.4](PyCQA/flake8@4.0.1...5.0.4)
- [github.com/pre-commit/mirrors-mypy: v0.971 → v0.981](pre-commit/mirrors-mypy@v0.971...v0.981)
- [github.com/kynan/nbstripout: 0.5.0 → 0.6.1](kynan/nbstripout@0.5.0...0.6.1)
- [github.com/asottile/pyupgrade: v2.37.2 → v2.38.2](asottile/pyupgrade@v2.37.2...v2.38.2)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Oct 4, 2022
1 parent 893733e commit 2f452ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

repos:
- repo: https://github.com/psf/black
rev: 22.6.0
rev: 22.8.0
hooks:
- id: black
- id: black-jupyter
Expand All @@ -26,14 +26,14 @@
args: ["--profile", "black", "-a", "from __future__ import annotations", "--append-only"]

- repo: https://github.com/PyCQA/flake8
rev: "4.0.1"
rev: "5.0.4"
hooks:
- id: flake8
additional_dependencies: ["flake8-bugbear"]
exclude: tests/test_xsec.py

- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v0.971"
rev: "v0.981"
hooks:
- id: mypy

Expand All @@ -44,12 +44,12 @@
args: ["-L", "compscat,hist"]

- repo: https://github.com/kynan/nbstripout
rev: 0.5.0
rev: 0.6.1
hooks:
- id: nbstripout

- repo: https://github.com/asottile/pyupgrade
rev: v2.37.2
rev: v2.38.2
hooks:
- id: pyupgrade
args: ["--py37-plus"]
2 changes: 1 addition & 1 deletion src/compscat/generate_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def gen_events(self):
el_e = np.zeros(self.Nevent)
while i < self.Nevent:
costh = -1 + (random.random() * self.delta)
phi = 2 * math.pi * random.random() #* self.delta
phi = 2 * math.pi * random.random() # * self.delta
w_ii = CrossSection(self.E / self.m).dsigma(costh) * self.delta
prob = w_ii / self.w_max
random_point = random.random()
Expand Down

0 comments on commit 2f452ac

Please sign in to comment.