diff --git a/.github/actions/code-quality/action.yml b/.github/actions/code-quality/action.yml index 44021b7..ade9cca 100644 --- a/.github/actions/code-quality/action.yml +++ b/.github/actions/code-quality/action.yml @@ -14,16 +14,16 @@ runs: using: "composite" steps: - name: Run Ruff Formatting - if: inputs.check-type == "format" + if: inputs.check-type == 'format' shell: bash run: poetry run ruff format --config pyproject.toml ${{ inputs.source-dir }} - name: Run Ruff Linting - if: inputs.check-type == "lint" + if: inputs.check-type == 'lint' shell: bash run: poetry run ruff check --config pyproject.toml ${{ inputs.source-dir }} - name: Run Mypy Type Checking - if: inputs.check-type == "type-check" + if: inputs.check-type == 'type-check' shell: bash run: poetry run mypy --config-file pyproject.toml ${{ inputs.source-dir }} \ No newline at end of file diff --git a/.github/actions/setup-env/action.yml b/.github/actions/setup-env/action.yml index 7e42f32..f04186c 100644 --- a/.github/actions/setup-env/action.yml +++ b/.github/actions/setup-env/action.yml @@ -29,7 +29,7 @@ runs: path: | ~/.cache/pypoetry ~/.poetry - key: ${{ runner.os }}-poetry-${{ hashFiles("**/poetry.lock") }}${{ inputs.cache-key-suffix }} + key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}${{ inputs.cache-key-suffix }} - name: Install dependencies shell: bash diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7875d29..7ed1324 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,7 +33,7 @@ jobs: source-dir: ${{ needs.config.outputs.source-dir }} lint: - needs: [ config, format ] + needs: [ config, setup ] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -46,7 +46,7 @@ jobs: source-dir: ${{ needs.config.outputs.source-dir }} type-check: - needs: [ config, format ] + needs: [ config, setup ] runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -71,7 +71,7 @@ jobs: release: needs: [ config, setup, format, lint, type-check, test ] - if: github.ref == "refs/heads/main" + if: github.ref == 'refs/heads/main' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -97,7 +97,7 @@ jobs: fi - name: Find Previous Release - if: env.CREATE_RELEASE == "true" + if: env.CREATE_RELEASE == 'true' run: | PREV_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "") if [ -n "$PREV_TAG" ]; then @@ -105,7 +105,7 @@ jobs: fi - name: Generate Compare URL - if: env.CREATE_RELEASE == "true" + if: env.CREATE_RELEASE == 'true' run: | if [ -n "${{ env.PREV_TAG }}" ]; then echo "URL=${{ github.server_url }}/${{ github.repository }}/compare/${{ env.PREV_TAG }}...${{ env.VERSION }}" >> $GITHUB_ENV @@ -114,7 +114,7 @@ jobs: fi - name: Generate Changelog - if: env.CREATE_RELEASE == "true" + if: env.CREATE_RELEASE == 'true' run: | chmod +x .github/generate_changelog.sh source .github/generate_changelog.sh @@ -128,7 +128,7 @@ jobs: echo "EOF" >> $GITHUB_ENV - name: Create Release - if: env.CREATE_RELEASE == "true" + if: env.CREATE_RELEASE == 'true' uses: softprops/action-gh-release@v2 with: tag_name: ${{ env.VERSION }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e38b9e8..d8a25f7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,7 +14,6 @@ repos: entry: poetry run ruff format language: python types_or: [ python, pyi, jupyter ] - args: [ "--config", "pyproject.toml", "src/" ] pass_filenames: true - id: ruff-lint @@ -22,7 +21,6 @@ repos: entry: poetry run ruff check language: python types_or: [ python, pyi, jupyter ] - args: [ "--config", "pyproject.toml", "src/" ] pass_filenames: true exclude: tests @@ -31,5 +29,4 @@ repos: entry: poetry run mypy language: python types_or: [ python, pyi, jupyter ] - args: [ "--config", "pyproject.toml", "src/" ] pass_filenames: true