Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

[pre-commit.ci] pre-commit autoupdate #10

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v5.0.0
hooks:
- id: check-docstring-first
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v2.2.0
rev: v2.7.0
hooks:
- id: setup-cfg-fmt
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 7.1.1
hooks:
- id: flake8
args: ["--ignore=E501,W503", ]
additional_dependencies: [flake8-typing-imports==1.12.0]
- repo: https://github.com/PyCQA/autoflake
rev: v2.1.1
rev: v2.3.1
hooks:
- id: autoflake
args: ["--in-place", "--remove-all-unused-imports"]
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/psf/black
rev: 23.3.0
rev: 24.10.0
hooks:
- id: black
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.2
rev: v3.18.0
hooks:
- id: pyupgrade
args: [--py37-plus, --keep-runtime-typing]
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ url = https://github.com/fmi-faim/eicm.git
author = Tim-Oliver Buchholz, Sabine Reither
author_email = [email protected], [email protected]
license = BSD-3-Clause
license_file = LICENSE
license_files = LICENSE
classifiers =
Development Status :: 3 - Alpha
Intended Audience :: Developers
Expand All @@ -32,7 +32,7 @@ install_requires =
scipy
tifffile
tqdm
python_requires = >=3.8
python_requires = >=3.9
package_dir =
=src
setup_requires =
Expand Down
5 changes: 1 addition & 4 deletions tests/test_gaussian2D_fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ def gaussian_2d(
Shifts the Gaussian `up` or `down` i.e. the background signal.
"""
return lambda y, x: offset + height * np.exp(
-(
((y - mu_y) ** 2 / (2 * sigma_y**2))
+ ((x - mu_x) ** 2 / (2 * sigma_x**2))
)
-(((y - mu_y) ** 2 / (2 * sigma_y**2)) + ((x - mu_x) ** 2 / (2 * sigma_x**2)))
)


Expand Down
Loading