Skip to content
Open
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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repos:
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.11.0
rev: 26.1.0
hooks:
- id: black
- repo: https://github.com/codespell-project/codespell
Expand All @@ -23,7 +23,7 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/kynan/nbstripout
rev: 0.8.2
rev: 0.9.1
hooks:
- id: nbstripout
files: \.(ipynb)$
1 change: 0 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

from pydra.utils import __version__ # noqa


authors = [("Nipype developers", "neuroimaging@python.org")]

# If extensions (or modules to document with autodoc) are in another directory,
Expand Down
1 change: 0 additions & 1 deletion pydra/compose/base/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from pydra.utils.general import get_fields
from .field import Field, Arg, Out, NO_DEFAULT


if ty.TYPE_CHECKING:
from .task import Task, Outputs

Expand Down
1 change: 0 additions & 1 deletion pydra/compose/base/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
from pydra.utils.hash import Cache, hash_single, register_serializer
from .field import Field, Arg, Out


if ty.TYPE_CHECKING:
from pydra.engine.job import Job
from pydra.environments.base import Environment
Expand Down
1 change: 0 additions & 1 deletion pydra/compose/shell/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from pathlib import Path
import pytest


try:
import importlib_resources
except ImportError:
Expand Down
9 changes: 3 additions & 6 deletions pydra/compose/shell/tests/test_shell_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -3527,11 +3527,9 @@ def test_shellcommand_error_msg(tmp_path):
script_path = Path(tmp_path) / "script.sh"

with open(script_path, "w") as f:
f.write(
"""#!/bin/bash
f.write("""#!/bin/bash
echo "first line is ok, it prints '$1'"
/command-that-doesnt-exist"""
)
/command-that-doesnt-exist""")

os.chmod(
script_path,
Expand Down Expand Up @@ -3563,8 +3561,7 @@ class Outputs(shell.Outputs):
path_str = str(script_path)

assert (
str(excinfo.value)
== f"""Error running 'main' job with ['{path_str}', 'hello']:
str(excinfo.value) == f"""Error running 'main' job with ['{path_str}', 'hello']:

stderr:
{path_str}: line 3: /command-that-doesnt-exist: No such file or directory
Expand Down
1 change: 0 additions & 1 deletion pydra/compose/tests/test_python_fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from pydra.utils.general import get_fields
from pydra.compose import python


sort_key = attrgetter("name")


Expand Down
1 change: 0 additions & 1 deletion pydra/engine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@

from .submitter import Submitter


__all__ = ["Submitter"]
1 change: 0 additions & 1 deletion pydra/engine/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import subprocess as sp
from pydra.utils.general import ensure_list, is_workflow


NodeType = ty.TypeVar("NodeType")

INPUTS_NODE_NAME = "__INPUTS__"
Expand Down
1 change: 0 additions & 1 deletion pydra/engine/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from pydra.utils.typing import StateArray, TypeParser
from pydra.utils.general import ensure_list, attrs_values


logger = logging.getLogger("pydra")


Expand Down
1 change: 0 additions & 1 deletion pydra/engine/tests/test_error_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from pydra.compose import python, workflow
from pydra.engine.submitter import Submitter


no_win = pytest.mark.skipif(
sys.platform.startswith("win"),
reason="docker/singularity command not adjusted for windows",
Expand Down
1 change: 0 additions & 1 deletion pydra/engine/tests/test_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from pydra.engine.submitter import Submitter
from pydra.engine.job import Job


no_win = pytest.mark.skipif(
sys.platform.startswith("win"),
reason="docker/singularity command not adjusted for windows",
Expand Down
1 change: 0 additions & 1 deletion pydra/environments/lmod.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from pydra.environments import base
from pydra.utils.general import ensure_list


logger = logging.getLogger("pydra")

if ty.TYPE_CHECKING:
Expand Down
6 changes: 2 additions & 4 deletions pydra/environments/tests/test_lmod.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,14 @@ def create_module(
module_dir.mkdir(parents=True)

with open(module_dir / f"{version}.lua", "w") as f:
f.write(
f"""
f.write(f"""
-- -*- lua -*-
help([===[
----------------------------------
## {name}/{version} ##
A {name} command
----------------------------------
]===])"""
)
]===])""")
f.write(module_src)
return f"{name}/{version}"

Expand Down
1 change: 0 additions & 1 deletion pydra/utils/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import pydra.scripts
from ._version import __version__


logger = logging.getLogger("pydra")
if ty.TYPE_CHECKING:
from pydra.compose.base import Task, Field # noqa
Expand Down
1 change: 0 additions & 1 deletion pydra/workers/slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from pydra.engine.job import Job, save
from pydra.workers import base


logger = logging.getLogger("pydra.worker")

if ty.TYPE_CHECKING:
Expand Down
Loading