From b4ea0c003721062dacdc906ce11233e987d85724 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Sun, 18 Feb 2024 14:21:27 +0100 Subject: [PATCH] Keep GitHub Actions up to date with GitHub's Dependabot (#51) * Keep GitHub Actions up to date with GitHub's Dependabot * ruff --output-format=github . * tool.ruff.lint... * pytest<8.0.0 * pytest<7.0.0 * Update pyproject.toml * Update pyproject.toml --- .github/dependabot.yml | 13 +++++++++++++ .github/workflows/lint_python.yml | 2 +- pyproject.toml | 14 +++++++++----- 3 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 .github/dependabot.yml 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"]