diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e0afc5db..3383316b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -37,11 +37,7 @@ repos: - id: ruff args: ["--fix", "--show-fixes"] exclude: "scripts/strun" - - - repo: https://github.com/psf/black-pre-commit-mirror - rev: 23.10.1 - hooks: - - id: black + - id: ruff-format - repo: https://github.com/adamchainz/blacken-docs rev: 1.16.0 diff --git a/pyproject.toml b/pyproject.toml index f2c47bb3..795cedbd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -82,6 +82,9 @@ testpaths = [ filterwarnings = [ "error::ResourceWarning", ] +markers = [ + "soctests", +] [tool.ruff] src = [ @@ -133,6 +136,9 @@ extend-select = [ 'PERF', # Perflint (performance linting) 'RUF', # ruff specific checks ] +ignore = [ + "ISC001", # conflicts with ruff formatter +] [tool.ruff.lint.extend-per-file-ignores] "tests/*.py" = ["S101", "S603", "S607", "INP001", "ARG001"] diff --git a/src/stpipe/step.py b/src/stpipe/step.py index 0718f51e..7ce9f7b3 100644 --- a/src/stpipe/step.py +++ b/src/stpipe/step.py @@ -189,7 +189,11 @@ def from_cmdline(args): @classmethod def _parse_class_and_name( - cls, config, parent=None, name=None, config_file=None # noqa: ARG003 + cls, + config, + parent=None, # noqa: ARG003 + name=None, + config_file=None, ): if "class" in config: step_class = utilities.import_class(