diff --git a/.github/actions/code-quality/action.yml b/.github/actions/code-quality/action.yml index 98187be..44021b7 100644 --- a/.github/actions/code-quality/action.yml +++ b/.github/actions/code-quality/action.yml @@ -1,29 +1,29 @@ -name: 'Code Quality Checks' -description: 'Runs formatting, linting, and type checking' +name: "Code Quality Checks" +description: "Runs formatting, linting, and type checking" inputs: check-type: - description: 'Type of check to run (format, lint, or type-check)' + description: "Type of check to run (format, lint, or type-check)" required: true source-dir: - description: 'Source directory to check' + description: "Source directory to check" required: false - default: 'src/' + default: "src/" 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 3e631fd..7e42f32 100644 --- a/.github/actions/setup-env/action.yml +++ b/.github/actions/setup-env/action.yml @@ -1,15 +1,15 @@ -name: 'Setup Environment' -description: 'Sets up Python, Poetry, and dependencies with caching' +name: "Setup Environment" +description: "Sets up Python, Poetry, and dependencies with caching" inputs: python-version: - description: 'Python version to use' + description: "Python version to use" required: false - default: '3.12' + default: "3.12" cache-key-suffix: - description: 'Additional suffix for cache key' + description: "Additional suffix for cache key" required: false - default: '' + default: "" runs: using: "composite" @@ -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/config.yml b/.github/workflows/config.yml index f9962df..ad260c9 100644 --- a/.github/workflows/config.yml +++ b/.github/workflows/config.yml @@ -1,11 +1,11 @@ -name: 'Shared Configuration' +name: "Shared Configuration" on: workflow_call: outputs: python-version: description: "Python version to use" - value: '3.12' + value: "3.12" poetry-cache-path: description: "Poetry cache paths" value: | @@ -13,16 +13,16 @@ on: ~/.poetry source-dir: description: "Source directory to check" - value: 'src/' + value: "src/" jobs: config: runs-on: ubuntu-latest outputs: - python-version: '3.12' + python-version: "3.12" poetry-cache-path: | ~/.cache/pypoetry ~/.poetry - source-dir: 'src/' + source-dir: "src/" steps: - run: echo "Shared configuration loaded" \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7cd83ec..7875d29 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,9 +1,9 @@ -name: 'CI and Release' +name: "CI and Release" on: push: branches: - - '*' + - "*" pull_request: jobs: @@ -29,7 +29,7 @@ jobs: python-version: ${{ needs.config.outputs.python-version }} - uses: ./.github/actions/code-quality with: - check-type: 'format' + check-type: "format" source-dir: ${{ needs.config.outputs.source-dir }} lint: @@ -42,7 +42,7 @@ jobs: python-version: ${{ needs.config.outputs.python-version }} - uses: ./.github/actions/code-quality with: - check-type: 'lint' + check-type: "lint" source-dir: ${{ needs.config.outputs.source-dir }} type-check: @@ -55,7 +55,7 @@ jobs: python-version: ${{ needs.config.outputs.python-version }} - uses: ./.github/actions/code-quality with: - check-type: 'type-check' + check-type: "type-check" source-dir: ${{ needs.config.outputs.source-dir }} test: @@ -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 06441ae..e38b9e8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook - rev: v9.18.0 + rev: v9.20.0 hooks: - id: commitlint stages: [ commit-msg ] diff --git a/.python-version b/.python-version index 56bb660..04e2079 100644 --- a/.python-version +++ b/.python-version @@ -1 +1 @@ -3.12.7 +3.12.8 diff --git a/README.md b/README.md index d5f7cd9..1322cd6 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ pyenv install --list Download & install a specific Python version: ```bash -pyenv install 3.12.7 +pyenv install 3.12.8 ``` List the global Python version set by your system: @@ -122,13 +122,13 @@ pyenv local Set the global Python version for your system: ```bash -pyenv global 3.12.7 +pyenv global 3.12.8 ``` Set the local Python version for your project: ```bash -pyenv local 3.12.7 +pyenv local 3.12.8 ``` Feel free to utilize Pyenv and modify the `.python-version` file to your preference. diff --git a/poetry.lock b/poetry.lock index 6e0198b..b7812f3 100644 --- a/poetry.lock +++ b/poetry.lock @@ -368,13 +368,13 @@ test = ["covdefaults (>=2.3)", "coverage (>=7.2.7)", "coverage-enable-subprocess [[package]] name = "win32-setctime" -version = "1.1.0" +version = "1.2.0" description = "A small Python utility to set file creation time on Windows" optional = false python-versions = ">=3.5" files = [ - {file = "win32_setctime-1.1.0-py3-none-any.whl", hash = "sha256:231db239e959c2fe7eb1d7dc129f11172354f98361c4fa2d6d2d7e278baa8aad"}, - {file = "win32_setctime-1.1.0.tar.gz", hash = "sha256:15cf5750465118d6929ae4de4eb46e8edae9a5634350c01ba582df868e932cb2"}, + {file = "win32_setctime-1.2.0-py3-none-any.whl", hash = "sha256:95d644c4e708aba81dc3704a116d8cbc974d70b3bdb8be1d150e36be6e9d1390"}, + {file = "win32_setctime-1.2.0.tar.gz", hash = "sha256:ae1fdf948f5640aae05c511ade119313fb6a30d7eabe25fef9764dca5873c4c0"}, ] [package.extras]