Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/actions/code-quality/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion .github/actions/setup-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -97,15 +97,15 @@ 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
echo "PREV_TAG=${PREV_TAG}" >> $GITHUB_ENV
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
Expand All @@ -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
Expand All @@ -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 }}
Expand Down
3 changes: 0 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@ repos:
entry: poetry run ruff format
language: python
types_or: [ python, pyi, jupyter ]
args: [ "--config", "pyproject.toml", "src/" ]
pass_filenames: true

- id: ruff-lint
name: Linting
entry: poetry run ruff check
language: python
types_or: [ python, pyi, jupyter ]
args: [ "--config", "pyproject.toml", "src/" ]
pass_filenames: true
exclude: tests

Expand All @@ -31,5 +29,4 @@ repos:
entry: poetry run mypy
language: python
types_or: [ python, pyi, jupyter ]
args: [ "--config", "pyproject.toml", "src/" ]
pass_filenames: true