diff --git a/.github/workflows/checks-vizro-ai.yml b/.github/workflows/checks-vizro-ai.yml index 1b05ace55..65b182abe 100644 --- a/.github/workflows/checks-vizro-ai.yml +++ b/.github/workflows/checks-vizro-ai.yml @@ -47,14 +47,11 @@ jobs: run: hatch run all.py${{ matrix.python-version }}:pip freeze - name: Check requirements for Snyk are up to date - run: | - pwd - hatch run all.py${{ matrix.python-version }}:update-snyk-requirements --check + run: hatch run all.py${{ matrix.python-version }}:update-snyk-requirements --check - name: Find added changelog fragments id: added-files run: | - pwd if ${{ github.event_name == 'pull_request' }}; then echo "added_files=$(git diff --name-only --diff-filter=A -r HEAD^1 HEAD -- changelog.d/*.md | xargs)" >> $GITHUB_OUTPUT else @@ -65,9 +62,9 @@ jobs: run: | if [ -z "${{ steps.added-files.outputs.added_files }}" ]; then - echo "No changelog fragment .md file within changelog.d was detected. Run 'hatch run docs:changelog' to create such a fragment."; + echo "No changelog fragment .md file within changelog.d was detected. Run 'hatch run changelog:add' to create such a fragment."; echo "If your PR contains changes that should be mentioned in the CHANGELOG in the next release, please uncomment the relevant section in your created fragment and describe the changes to the user." - echo "If your changes are not relevant for the CHANGELOG, please save and commit the file as." + echo "If your changes are not relevant for the CHANGELOG, please save and commit the file as is." exit 1 else echo "${{ steps.added-files.outputs.added_files }} was added - ready to go!"; diff --git a/vizro-ai/hatch.toml b/vizro-ai/hatch.toml index 5ec9d761c..65a6479ff 100644 --- a/vizro-ai/hatch.toml +++ b/vizro-ai/hatch.toml @@ -59,9 +59,7 @@ dependencies = [ "mkdocstrings[python]" ] detached = true - -[envs.docs.scripts] -serve = "mkdocs serve" +scripts = {serve = "mkdocs serve"} [version] path = "src/vizro_ai/__init__.py" diff --git a/vizro-core/hatch.toml b/vizro-core/hatch.toml index c2c7b0350..bb9d66cc7 100644 --- a/vizro-core/hatch.toml +++ b/vizro-core/hatch.toml @@ -75,8 +75,7 @@ dependencies = [ "mkdocs", "mkdocs-material", "mkdocs-git-revision-date-localized-plugin", - "mkdocstrings[python]", - "scriv" + "mkdocstrings[python]" ] detached = true scripts = {serve = "mkdocs serve"}