diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 92d1ded..bf7904b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,11 +1,11 @@ repos: - repo: https://github.com/psf/black - rev: 23.11.0 + rev: 24.10.0 hooks: - id: black - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 + rev: v5.0.0 hooks: - id: check-added-large-files - id: check-case-conflict @@ -24,31 +24,31 @@ repos: - id: trailing-whitespace - repo: https://github.com/PyCQA/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort args: ["--profile", "black"] - repo: https://github.com/asottile/setup-cfg-fmt - rev: v2.5.0 + rev: v2.7.0 hooks: - id: setup-cfg-fmt - repo: https://github.com/asottile/pyupgrade - rev: v3.15.0 + rev: v3.19.0 hooks: - id: pyupgrade args: ["--py36-plus"] - repo: https://github.com/pycqa/flake8 - rev: 6.1.0 + rev: 7.1.1 hooks: - id: flake8 exclude: docs/conf.py additional_dependencies: [flake8-bugbear, flake8-print] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.7.1 + rev: v1.13.0 hooks: - id: mypy files: histoprint diff --git a/src/remu/binning.py b/src/remu/binning.py index ce61146..d0791f9 100644 --- a/src/remu/binning.py +++ b/src/remu/binning.py @@ -14,7 +14,6 @@ """ - from copy import deepcopy from tempfile import TemporaryFile diff --git a/src/remu/likelihood.py b/src/remu/likelihood.py index 3b59893..a95af45 100644 --- a/src/remu/likelihood.py +++ b/src/remu/likelihood.py @@ -1,6 +1,5 @@ """Module that deals with the calculations of likelihoods.""" - import numpy as np from scipy import optimize, stats from scipy.misc import derivative diff --git a/src/remu/matrix_utils.py b/src/remu/matrix_utils.py index 075dbfa..6320d5f 100644 --- a/src/remu/matrix_utils.py +++ b/src/remu/matrix_utils.py @@ -1,6 +1,5 @@ """Utility functions for the work with response matrices.""" - import numpy as np from matplotlib import pyplot as plt from scipy import stats diff --git a/src/remu/migration.py b/src/remu/migration.py index 6129c03..ea7c835 100644 --- a/src/remu/migration.py +++ b/src/remu/migration.py @@ -1,6 +1,5 @@ """Module handling the creation and use of migration matrices.""" - from copy import deepcopy from warnings import warn diff --git a/src/remu/plotting.py b/src/remu/plotting.py index 4666762..8017639 100644 --- a/src/remu/plotting.py +++ b/src/remu/plotting.py @@ -13,7 +13,6 @@ """ - from itertools import cycle import numpy as np