Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.5.0
hooks:
- id: check-docstring-first
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v1.20.1
rev: v2.5.0
hooks:
- id: setup-cfg-fmt
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
rev: 7.0.0
hooks:
- id: flake8
additional_dependencies: [flake8-typing-imports==1.7.0]
- repo: https://github.com/myint/autoflake
rev: v1.4
- repo: https://github.com/PyCQA/autoflake
rev: v2.3.1
hooks:
- id: autoflake
args: ["--in-place", "--remove-all-unused-imports"]
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.6.0
rev: 24.3.0
hooks:
- id: black
- repo: https://github.com/asottile/pyupgrade
rev: v2.37.1
rev: v3.15.1
hooks:
- id: pyupgrade
args: [--py37-plus, --keep-runtime-typing]
Expand Down
24 changes: 15 additions & 9 deletions llspy/gui/mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1421,9 +1421,11 @@ def getValidatedOptions(self):
"trimZ": (self.trimZ0SpinBox.value(), self.trimZ1SpinBox.value()),
"trimY": (self.trimY0SpinBox.value(), self.trimY1SpinBox.value()),
"trimX": (self.trimX0SpinBox.value(), self.trimX1SpinBox.value()),
"nIters": self.iterationsSpinBox.value()
if self.doDeconGroupBox.isChecked()
else 0,
"nIters": (
self.iterationsSpinBox.value()
if self.doDeconGroupBox.isChecked()
else 0
),
"napodize": self.apodizeSpinBox.value(),
"nzblend": self.zblendSpinBox.value(),
# if bRotate == True and rotateAngle is not none: rotate based on sheet angle
Expand Down Expand Up @@ -1465,9 +1467,11 @@ def getValidatedOptions(self):
if self.RegProcessChannelRefModeCombo.currentText()
else "none"
),
"otfDir": self.otfFolderLineEdit.text()
if self.otfFolderLineEdit.text() != ""
else None,
"otfDir": (
self.otfFolderLineEdit.text()
if self.otfFolderLineEdit.text() != ""
else None
),
"compressRaw": self.compressRawCheckBox.isChecked(),
"compressionType": self.compressTypeCombo.currentText(),
"reprocess": self.reprocessCheckBox.isChecked(),
Expand Down Expand Up @@ -1862,9 +1866,11 @@ def closeEvent(self, event):
box.setCheckBox(pref)

pref.stateChanged.connect(
lambda value: self.confirmOnQuitCheckBox.setChecked(False)
if value
else self.confirmOnQuitCheckBox.setChecked(True)
lambda value: (
self.confirmOnQuitCheckBox.setChecked(False)
if value
else self.confirmOnQuitCheckBox.setChecked(True)
)
)

reply = box.exec_()
Expand Down
9 changes: 2 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ url = https://github.com/tlambert03/LLSpy
author = Talley Lambert
author_email = [email protected]
license = BSD 3-clause
license_file = LICENSE
license_files = LICENSE
classifiers =
Development Status :: 3 - Alpha
Intended Audience :: Science/Research
Expand All @@ -18,11 +18,6 @@ classifiers =
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Topic :: Scientific/Engineering
Topic :: Scientific/Engineering :: Visualization

Expand All @@ -41,7 +36,7 @@ install_requires =
voluptuous
watchdog
numba;python_version < '3.10'
python_requires = >=3.6
python_requires = >=3.8
include_package_data = True
zip_safe = False

Expand Down
Loading