PTHMINT-52: Fix Ruff D100 #110
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Code quality checks | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| code-quality: | |
| name: Code quality checks | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] | |
| steps: | |
| - name: Checkout master repository | |
| uses: actions/checkout@v4 | |
| with: | |
| path: ./python-sdk | |
| - name: Clone MultiSafepay docker python | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: MultiSafepay/docker-python | |
| token: ${{ secrets.GLOBAL_GITHUB_TOKEN }} | |
| path: ./docker-python | |
| submodules: 'false' | |
| - name: Setup submodule | |
| run: | | |
| rm -rf ./docker-python/packages-source/multisafepay/python-sdk | |
| mv ./python-sdk ./docker-python/packages-source/multisafepay/python-sdk | |
| - name: Copy environment file | |
| run: cp .env.example .env | |
| working-directory: ./docker-python | |
| - name: Replace environment variable | |
| run: sed -i "s/^PYTHON_VERSION=.*/PYTHON_VERSION=${{ matrix.python-version }}/" .env | |
| working-directory: ./docker-python | |
| - name: Setup containers and application | |
| run: bin/setup | |
| working-directory: ./docker-python | |
| - name: Run linting | |
| run: bin/lint | |
| working-directory: ./docker-python | |
| - name: Static type checker | |
| run: bin/static-type-check | |
| working-directory: ./docker-python | |
| - name: Run tests | |
| run: bin/test-report | |
| working-directory: ./docker-python | |
| - name: Upload coverage file to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| fail_ci_if_error: true | |
| files: ./docker-python/packages-source/multisafepay/python-sdk/coverage.xml | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| verbose: true |