Skip to content
Merged
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
2 changes: 1 addition & 1 deletion mica/vv/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ def _find_aspect_intervals(self):
for dir in ASP_dirs:
max_out = max(sorted(glob(os.path.join(dir, "out*"))))
asol_files = sorted(glob(os.path.join(max_out, "pcad*asol*")))
if len(asol_files):
if len(asol_files) > 0:
for file in asol_files:
self.aiids.append(self._aiid_from_asol(file, max_out))

Expand Down
10 changes: 7 additions & 3 deletions ruff-base.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Copied originally from pandas. This config requires ruff >= 0.2.
target-version = "py311"
target-version = "py312"

# fix = true
lint.unfixable = []
Expand Down Expand Up @@ -31,6 +30,7 @@ lint.extend-select = [
"ARG001", # Unused function argument
"RSE102", # Unnecessary parentheses on raised exception
"PERF401", # Use a list comprehension to create a transformed list
"S101", # Use of `assert` detected
]

lint.ignore = [
Expand All @@ -41,10 +41,13 @@ lint.ignore = [
"B028", # No explicit `stacklevel` keyword argument found
"PLR0913", # Too many arguments to function call
"PLR1730", # Checks for if statements that can be replaced with min() or max() calls
"PLC0415", # `import` should be at the top-level of a file
"PLW1641", # Class implements `__hash__` if `__eq__` is implemented
]

extend-exclude = [
"docs",
"build",
]

[lint.pycodestyle]
Expand All @@ -56,4 +59,5 @@ max-line-length = 100 # E501 reports lines that exceed the length of 100.
# - D205: Don't worry about test docstrings
# - ARG001: Unused function argument false positives for some fixtures
# - E501: Line-too-long
"**/tests/test_*.py" = ["D205", "ARG001", "E501"]
# - S101: Do not use assert
"**/tests/test_*.py" = ["D205", "ARG001", "E501", "S101"]
4 changes: 2 additions & 2 deletions scripts/update_acq_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@

table_file = mica.stats.acq_stats.TABLE_FILE
file_stat = os.stat(table_file)
if file_stat.st_size > 50e6:
if file_stat.st_size > 75e6:
print(
"""
Warning: {tfile} is larger than 50MB and may need
Warning: {tfile} is larger than 75MB and may need
Warning: to be manually repacked (i.e.):
Warning:
Warning: ptrepack --chunkshape=auto --propindexes --keep-source-filters {tfile} compressed.h5
Expand Down