Merge pull request #18 from NHFLO/bodemlagen_pwn_2024 #40
This file contains 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: Tools repository | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
name: Lint python files | |
runs-on: ubuntu-latest | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
cancel-in-progress: true | |
strategy: | |
fail-fast: false | |
env: | |
HATCH_VERBOSE: 1 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version-file: "pyproject.toml" | |
- name: Install uv | |
uses: astral-sh/setup-uv@v3 | |
- name: Install hatch | |
run: uv tool install hatch | |
- name: Lint Python files | |
run: hatch run lintformat:lintminimal |