diff --git a/.cspell/custom-words.txt b/.cspell/custom-words.txt index 051ff147b..570b62469 100644 --- a/.cspell/custom-words.txt +++ b/.cspell/custom-words.txt @@ -90,4 +90,5 @@ vulnz worktree yaml yml +EDITMSG keyid diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index c87fea289..94335494d 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -27,7 +27,8 @@ on: - main paths: - ".github/workflows/docs.yml" - - "requirements-docs.txt" + - "pyproject.toml" + - "uv.lock" - "mkdocs.yml" - "main.py" - "hooks.py" @@ -63,7 +64,7 @@ jobs: uses: astral-sh/setup-uv@v7 - name: Install documentation dependencies - run: uv sync + run: uv sync --all-groups - name: Lint YAML files run: uv run yamllint -c .github/linters/.yamllint.yml . @@ -74,6 +75,14 @@ jobs: with: files: source/** + - name: Install Rust + uses: dtolnay/rust-toolchain@stable + + - name: Cache Cargo + uses: Swatinem/rust-cache@v2 + with: + cache-on-failure: true + - name: Install ucp-schema for runtime resolution run: | cargo install ucp-schema diff --git a/.github/workflows/linter.yaml b/.github/workflows/linter.yaml index 33096bf63..ae3940b87 100644 --- a/.github/workflows/linter.yaml +++ b/.github/workflows/linter.yaml @@ -19,6 +19,19 @@ on: branches: - main - 'release/**' + paths: + - ".github/workflows/linter.yaml" + - ".github/workflows/schema-validation.yml" + - ".github/linters/**" + - ".pre-commit-config.yaml" + - "pyproject.toml" + - "package.json" + - "package-lock.json" + - "biome.json" + - "scripts/**" + - "source/**" + - "docs/**" + - "*.py" permissions: contents: read # Required to checkout the code @@ -49,7 +62,8 @@ jobs: LOG_LEVEL: INFO SHELLCHECK_OPTS: -e SC1091 -e 2086 VALIDATE_ALL_CODEBASE: false - FILTER_REGEX_EXCLUDE: "^(\\.github/|\\.vscode/).*|CODE_OF_CONDUCT.md|CHANGELOG.md" + FILTER_REGEX_EXCLUDE: >- + ^(\\.github/|\\.vscode/).*|CODE_OF_CONDUCT.md|CHANGELOG.md VALIDATE_BIOME_FORMAT: false VALIDATE_PYTHON_BLACK: false VALIDATE_PYTHON_FLAKE8: false diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1077037d3..7afb86005 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -55,5 +55,6 @@ repos: hooks: - id: prettier name: prettier-css - types: [css] # Only run on CSS files - # If you want it to run on EVERYTHING (JS, JSON, MD), remove the 'types' line. + # Only run on CSS files + types: [css] + # To run on everything (JS, JSON, MD), remove the 'types' line.