diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..be006de --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,13 @@ +# Keep GitHub Actions up to date with GitHub's Dependabot... +# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot +# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem +version: 2 +updates: + - package-ecosystem: github-actions + directory: / + groups: + github-actions: + patterns: + - "*" # Group all Actions updates into a single larger pull request + schedule: + interval: weekly diff --git a/.github/workflows/lint_python.yml b/.github/workflows/lint_python.yml index 19397a7..87e9952 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -11,7 +11,7 @@ jobs: - run: pip install --upgrade pip setuptools wheel - run: pip install --editable ".[dev]" - run: codespell . - - run: ruff --format=github . + - run: ruff --output-format=github . - run: black --check . - run: mypy . - run: pytest -vv . diff --git a/pyproject.toml b/pyproject.toml index 28f35ca..fb5d21b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -69,6 +69,10 @@ exclude = ["build/"] ignore_missing_imports = true [tool.ruff] +line-length = 88 # Recommended: 88 +target-version = "py38" + +[tool.ruff.lint] select = [ "A", "B", @@ -96,17 +100,17 @@ select = [ "W", "YTT", ] -line-length = 88 # Recommended: 88 -target-version = "py37" -[tool.ruff.mccabe] +[tool.ruff.lint.mccabe] max-complexity = 24 # Recommended: 10 -[tool.ruff.pylint] +[tool.ruff.lint.pylint] max-args = 6 # Recommended: 5 max-branches = 25 # Recommended: 12 max-returns = 6 # Recommended: 6 max-statements = 89 # Recommended: 50 -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] "test/*" = ["C406", "S101", "SIM115"] +"test/_prepare_outputs.py" = ["PLW1510", "S603", "S607"] +"test/test_outputs.py" = ["PLW1510", "S603", "S607"]