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
3 changes: 0 additions & 3 deletions .flake8

This file was deleted.

7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,12 @@ coverage.xml: testcov
coverage-report: testcov
coverage report

flake8:
flake8 streamflow tests

format:
isort streamflow tests
ruff check --fix streamflow tests
black --target-version py310 streamflow tests

format-check:
isort --check-only streamflow tests
ruff check streamflow tests
black --target-version py310 --diff --check streamflow tests

pyupgrade:
Expand Down
15 changes: 10 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,8 @@ bandit = [
lint = [
"black==26.3.1",
"codespell==2.4.2",
"flake8-bugbear==25.11.29",
"isort==8.0.1",
"pyupgrade==3.21.2"
"pyupgrade==3.21.2",
"ruff==0.15.12"
]
test = [
"cwltest==2.6.20251216093331",
Expand All @@ -74,5 +73,11 @@ zip-safe = true
[tool.setuptools.package-data]
"streamflow.plugins.unito.postgresql" = ["schemas/*.json", "schemas/*.sql"]

[tool.isort]
profile = "black"
[tool.ruff]
exclude = ["streamflow/cwl/antlr"]
line-length = 88
target-version = "py310"

[tool.ruff.lint]
select = ["E", "W", "F", "B", "I"]
ignore = ["E203", "E501", "B904"]
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def are_equals(elem1, elem2, obj_compared=None):
if isinstance(elem1, Collection) and not isinstance(elem1, dict):
if len(elem1) != len(elem2):
return False
for e1, e2 in zip(elem1, elem2):
for e1, e2 in zip(elem1, elem2, strict=True):
if not are_equals(e1, e2, obj_compared):
return False
return True
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ passenv =

[testenv:lint]
allowlist_externals = make
commands = make flake8 format-check codespell-check pyupgrade
commands = make format-check codespell-check pyupgrade
dependency_groups = lint
description = Lint the Python code
100 changes: 29 additions & 71 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading