diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 15658e8..4d88a42 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,78 +9,78 @@ name: Tests on: - push: - branches: - - master - pull_request: - branches: - - master - workflow_dispatch: - inputs: - reason: - description: "Reason" - required: false - default: "Manual trigger" + push: + branches: + - master + pull_request: + branches: + - master + workflow_dispatch: + inputs: + reason: + description: "Reason" + required: false + default: "Manual trigger" jobs: - create-strategy: - runs-on: ubuntu-latest + create-strategy: + runs-on: ubuntu-latest - outputs: - matrix: ${{ steps.requirements.outputs.matrix }} + outputs: + matrix: ${{ steps.requirements.outputs.matrix }} - steps: - - name: Checkout - uses: actions/checkout@v4 + steps: + - name: Checkout + uses: actions/checkout@v4 - - name: requirements - id: requirements - run: | - # Define a simple matrix with your Python version - # Since we're using pyproject.toml with Python 3.12 requirement - echo "matrix={\"include\": [{\"python-version\": \"3.12\"}]}" >> $GITHUB_OUTPUT + - name: requirements + id: requirements + run: | + # Define a simple matrix with your Python version + # Since we're using pyproject.toml with Python 3.12 requirement + echo "matrix={\"include\": [{\"python-version\": \"3.12\"}]}" >> $GITHUB_OUTPUT - # Print the matrix for debugging - echo "-------------------" - echo "Matrix: {\"include\": [{\"python-version\": \"3.12\"}]}" - echo "-------------------" + # Print the matrix for debugging + echo "-------------------" + echo "Matrix: {\"include\": [{\"python-version\": \"3.12\"}]}" + echo "-------------------" - tests: - needs: create-strategy - runs-on: ubuntu-latest - name: Test (Python ${{matrix.python-version}}) - strategy: - fail-fast: false - matrix: ${{ fromJson(needs.create-strategy.outputs.matrix) }} + tests: + needs: create-strategy + runs-on: ubuntu-latest + name: Test (Python ${{matrix.python-version}}) + strategy: + fail-fast: false + matrix: ${{ fromJson(needs.create-strategy.outputs.matrix) }} - # Simplified environment without service variables - env: - PYTHON_VERSION: ${{ matrix.python-version }} + # Simplified environment without service variables + env: + PYTHON_VERSION: ${{ matrix.python-version }} - steps: - - name: Checkout - uses: actions/checkout@v4 + steps: + - name: Checkout + uses: actions/checkout@v4 - - name: Set up uv - uses: astral-sh/setup-uv@v6 - with: - python-version: "${{ matrix.python-version }}" - enable-cache: true - cache-dependency-glob: | - pyproject.toml - cache-suffix: ${{ matrix.python-version }} + - name: Set up uv + uses: astral-sh/setup-uv@v6 + with: + python-version: "${{ matrix.python-version }}" + enable-cache: true + cache-dependency-glob: | + pyproject.toml + cache-suffix: ${{ matrix.python-version }} - - name: Show configuration - run: | - uv --version - uv run python --version - docker --version - docker ps + - name: Show configuration + run: | + uv --version + uv run python --version + docker --version + docker ps - - name: Install dependencies - run: | - uv sync --group tests + - name: Install dependencies + run: | + uv sync --group tests - - name: Run tests - run: | - uv run test + - name: Run tests + run: | + uv run test diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0089e66..b0cd2a3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,45 +1,45 @@ repos: - - repo: local - hooks: - - id: check-version-increment - name: Check Version Increment - entry: python scripts/hooks/pre-push/check_version_increment.py - language: system - pass_filenames: false - stages: [pre-push] + - repo: local + hooks: + - id: check-version-increment + name: Check Version Increment + entry: python scripts/hooks/pre-push/check_version_increment.py + language: system + pass_filenames: false + stages: [pre-push] - - id: tests - name: Run Python Tests - entry: uv run test - language: system - pass_filenames: false - stages: [pre-push] + - id: tests + name: Run Python Tests + entry: uv run test + language: system + pass_filenames: false + stages: [pre-push] - - id: prettier-with-jinja - name: Prettier (with Jinja support) - entry: bun run prettier -c - language: system - types_or: - [javascript, jsx, ts, tsx, css, scss, sass, less, yaml, json, markdown, html, jinja] - stages: [pre-push] + - id: prettier-with-jinja + name: Prettier (with Jinja support) + entry: bun run prettier -c + language: system + types_or: + [javascript, jsx, ts, tsx, css, scss, sass, less, yaml, json, markdown, html, jinja] + stages: [pre-push] - - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.11.9 - hooks: - - id: ruff - stages: [pre-push] - - id: ruff-format - stages: [pre-push] + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.11.9 + hooks: + - id: ruff + stages: [pre-push] + - id: ruff-format + stages: [pre-push] - - repo: https://github.com/pre-commit/mirrors-eslint - rev: v9.26.0 - hooks: - - id: eslint - additional_dependencies: - - eslint@latest - - eslint/js - - eslint/json - - eslint-plugin-react + - repo: https://github.com/pre-commit/mirrors-eslint + rev: v9.26.0 + hooks: + - id: eslint + additional_dependencies: + - eslint@latest + - eslint/js + - eslint/json + - eslint-plugin-react - files: \.(js|ts|jsx|tsx)$ - stages: [pre-push] + files: \.(js|ts|jsx|tsx)$ + stages: [pre-push] diff --git a/devenv.yaml b/devenv.yaml index c535723..68616a4 100644 --- a/devenv.yaml +++ b/devenv.yaml @@ -1,4 +1,4 @@ # yaml-language-server: $schema=https://devenv.sh/devenv.schema.json inputs: - nixpkgs: - url: github:cachix/devenv-nixpkgs/rolling + nixpkgs: + url: github:cachix/devenv-nixpkgs/rolling diff --git a/prettier.config.mjs b/prettier.config.mjs index bad1375..bc44bdb 100644 --- a/prettier.config.mjs +++ b/prettier.config.mjs @@ -11,6 +11,18 @@ const config = { parser: "jinja-template", }, }, + { + files: "*.yaml", + options: { + tabWidth: 2, + }, + }, + { + files: "*.yml", + options: { + tabWidth: 2, + }, + }, ], };