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
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
!.github
!.gitlab-ci.yml
!.readthedocs.yaml
!.flake8

# Byte / compiled / optimized
*.py[cod]
Expand Down
27 changes: 21 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,14 @@ Issues = "https://github.com/ewoks-kit/ewoksgalaxy/issues"
Changelog = "https://github.com/ewoks-kit/ewoksgalaxy/blob/main/CHANGELOG.md"

[project.optional-dependencies]
test = ["pytest >=7", "ewoks"]
dev = ["ewoksgalaxy[test]", "ruff"]
test = [
"pytest >=7",
"ewoks"
]
dev = [
"ewoksgalaxy[test]",
"ruff>=0.16.0"
]
doc = [
"ewoksgalaxy[test]",
"sphinx >=4.5",
Expand All @@ -56,15 +62,24 @@ namespaces = false
omit = ["*/tests/*"]

[tool.ruff.lint]
select = ["E", "F", "I", "S"]
ignore = ["E203", "E501", "E701"]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"S", # flake8-bandit
]
ignore = [
"E501", # line too long
]

[tool.ruff.lint.per-file-ignores]
# Ignore `S101` (assert used violations) in all test files
"*/test_*.py" = ["S101", "S603"]
"*/test_*.py" = [
"S101" # allow asserts
]

[tool.ruff.lint.isort]
force-single-line = true
known-first-party = ["ewoksgalaxy"]

[project.entry-points."ewoks.engines"]
"gxwf" = "ewoksgalaxy.engine:GalaxyWorkflowEngine"
Expand Down
4 changes: 2 additions & 2 deletions src/ewoksgalaxy/tests/test_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def test_convert(ewoks_workflow: dict, tmpdir: Path):
json.dump(ewoks_workflow, f)

output_path = tmpdir / "workflow.yaml"
subprocess.run(
subprocess.run( # noqa: S603
[
sys.executable,
"-m",
Expand All @@ -25,7 +25,7 @@ def test_convert(ewoks_workflow: dict, tmpdir: Path):
)
assert output_path.exists()

subprocess.run(
subprocess.run( # noqa: S603
[sys.executable, "-m", "gxformat2.lint", str(output_path)],
check=True,
)
Loading