diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 9fab73d3..46e5cc49 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,6 +5,6 @@ updates: - package-ecosystem: "github-actions" directory: "/" schedule: - interval: "monthly" + interval: "monthly" ... diff --git a/.github/workflows/linkcheck.yml b/.github/workflows/linkcheck.yml index f0d62ea4..5752e750 100644 --- a/.github/workflows/linkcheck.yml +++ b/.github/workflows/linkcheck.yml @@ -1,3 +1,5 @@ +--- + name: Check documentation's hyperlinks on: @@ -11,6 +13,8 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: "3.x" + python-version: "3.x" - run: pipx install hatch - run: hatch run docs:linkcheck + +... diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 97625a51..5c6ad53a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,7 +1,7 @@ --- name: Publish delb -on: # yamllint disable-line +on: push: tags: ["*"] diff --git a/.github/workflows/quality-checks.yml b/.github/workflows/quality-checks.yml index 0bb92798..dd4af157 100644 --- a/.github/workflows/quality-checks.yml +++ b/.github/workflows/quality-checks.yml @@ -25,7 +25,8 @@ jobs: build: runs-on: ubuntu-latest outputs: - python-versions: ${{ steps.baipp.outputs.supported_python_classifiers_json_array }} + python-versions: >- + ${{ steps.baipp.outputs.supported_python_classifiers_json_array }} steps: - uses: actions/checkout@v4 @@ -81,8 +82,8 @@ jobs: strategy: matrix: target: - - code-lint - doctest + - lint - mypy steps: - uses: actions/checkout@v4 diff --git a/Justfile b/Justfile index 5a24bb82..a157fc87 100644 --- a/Justfile +++ b/Justfile @@ -20,10 +20,6 @@ black: coverage-report: hatch run unit-tests:coverage-report -# code linting with flake8 -code-lint: - hatch run linting:check - # generate Sphinx HTML documentation, including API docs docs: hatch run docs:clean @@ -34,6 +30,11 @@ doctest: hatch run docs:clean hatch run docs:doctest +# code & data linting with flake8 & yamllint +lint: + hatch run linting:check + pipx run yamllint $(find . -name "*.yaml" -or -name "*.yml") + # run static type checks with mypy mypy: hatch run mypy:check @@ -60,7 +61,7 @@ show-docs: docs xdg-open docs/build/html/index.html # run all tests on normalized code -tests: black code-lint mypy pytest doctest +tests: black lint mypy pytest doctest # run the testsuite against a wheel (installed from $WHEEL_PATH); intended to run on a CI platform test-wheel $WHEEL_PATH: