name: Check Codestyle Python on: workflow_call: inputs: build-tools-image: description: 'build-tools image' required: true type: string defaults: run: shell: bash -euxo pipefail {0} jobs: check-codestyle-python: runs-on: [ self-hosted, small ] permissions: packages: read container: image: ${{ inputs.build-tools-image }} credentials: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} options: --init steps: - uses: actions/checkout@v4 - uses: actions/cache@v4 with: path: ~/.cache/pypoetry/virtualenvs key: v2-${{ runner.os }}-${{ runner.arch }}-python-deps-bookworm-${{ hashFiles('poetry.lock') }} - run: ./scripts/pysync - run: poetry run ruff check . - run: poetry run ruff format --check . - run: poetry run mypy .