diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..be006de9 --- /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 fff9533a..d7651510 100644 --- a/.github/workflows/lint_python.yml +++ b/.github/workflows/lint_python.yml @@ -14,18 +14,18 @@ jobs: python-version: 3.x - run: pip install --upgrade pip ruff setuptools wheel - name: "Ruff: Show stopper (must-fix) issues" - run: ruff . --select=E9,F63,F7,F82,PLE,YTT --show-source . + run: ruff check --select=E9,F63,F7,F82,PLE,YTT --output-format=github - name: "Ruff: All issues" - run: ruff --exit-zero --select=ALL --statistics --target-version=py37 . + run: ruff check --exit-zero --select=ALL --statistics --target-version=py38 - name: "Ruff: All fixable (ruff --fix) issues" - run: ruff --exit-zero --select=ALL --ignore=ANN204,COM812,ERA001,RSE102 - --statistics --target-version=py37 . | grep "\[\*\]" - - run: pip install black codespell mypy pytest safety - - run: black --check . || true + run: ruff check --exit-zero --select=ALL --ignore=ANN204,COM812,ERA001,RSE102 + --statistics --target-version=py38 . | grep "\[\*\]" + - run: ruff format || true + - run: pip install codespell mypy pytest safety - run: codespell - run: pip install -r requirements.txt || pip install --editable . || pip install . || true - run: mkdir --parents --verbose .mypy_cache - run: mypy --ignore-missing-imports --install-types --non-interactive . || true - run: pytest . || true - run: pytest --doctest-modules . || true - - run: safety check + - run: safety check || true