From 1a10bbb7c98645c3795a60f6a8607806cba63ed5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Jan 2024 18:27:44 +0000 Subject: [PATCH 1/2] autoupdate pre-commit hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/mirrors-prettier: v3.1.0 → v4.0.0-alpha.8](https://github.com/pre-commit/mirrors-prettier/compare/v3.1.0...v4.0.0-alpha.8) - [github.com/pre-commit/mirrors-mypy: v1.7.1 → v1.8.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.7.1...v1.8.0) - [github.com/pycqa/pylint: v3.0.1 → v3.0.3](https://github.com/pycqa/pylint/compare/v3.0.1...v3.0.3) - [github.com/astral-sh/ruff-pre-commit: v0.1.6 → v0.1.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.6...v0.1.9) --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a5cdfb8..64b82c7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ ci: autoupdate_schedule: quarterly repos: - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.1.0 + rev: v4.0.0-alpha.8 hooks: - id: prettier - repo: https://github.com/fsfe/reuse-tool @@ -24,21 +24,21 @@ repos: - id: blacken-docs args: [-l 100] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.7.1 + rev: v1.8.0 hooks: - id: mypy files: simweights additional_dependencies: [numpy] exclude: ^contrib/ - repo: https://github.com/pycqa/pylint - rev: v3.0.1 + rev: v3.0.3 hooks: - id: pylint files: simweights exclude: ^contrib/ additional_dependencies: [numpy, pandas] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.6 + rev: v0.1.9 hooks: - id: ruff args: [--fix, --show-fixes] From 77835b4f281a1524f35547ab294668a163d77fef Mon Sep 17 00:00:00 2001 From: Kevin Meagher <11620178+kjmeagher@users.noreply.github.com> Date: Tue, 2 Jan 2024 15:36:43 -0600 Subject: [PATCH 2/2] fix self assignments --- examples/nugen_plot.py | 2 +- examples/triggered_corsika_plot.py | 2 +- examples/without_tableio.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/nugen_plot.py b/examples/nugen_plot.py index a031aae..027362e 100755 --- a/examples/nugen_plot.py +++ b/examples/nugen_plot.py @@ -24,7 +24,7 @@ def northern_track(energy: ArrayLike) -> ArrayLike: # get the weights by passing the flux to the weighter -weights = weights = weighter.get_weights(northern_track) +weights = weighter.get_weights(northern_track) # print some info about the weighting object print(weighter.tostring(northern_track)) diff --git a/examples/triggered_corsika_plot.py b/examples/triggered_corsika_plot.py index b26d56e..f832320 100755 --- a/examples/triggered_corsika_plot.py +++ b/examples/triggered_corsika_plot.py @@ -18,7 +18,7 @@ flux = simweights.GaisserH4a() # get the weights by passing the flux to the weighter -weights = weights = weighter.get_weights(flux) +weights = weighter.get_weights(flux) # print some info about the weighting object print(weighter.tostring(flux)) diff --git a/examples/without_tableio.py b/examples/without_tableio.py index 8cc6d1c..52d47b2 100755 --- a/examples/without_tableio.py +++ b/examples/without_tableio.py @@ -60,7 +60,7 @@ flux = simweights.GaisserH4a() # get the weights by passing the flux to the weighter -weights = weights = weighter.get_weights(flux) +weights = weighter.get_weights(flux) # print some info about the weighting object print(weighter.tostring(flux))