Skip to content

Commit

Permalink
Merge pull request #18 from NHFLO/actions
Browse files Browse the repository at this point in the history
Update lint workflow to improve concurrency handling and Hatch setup
  • Loading branch information
bdestombe authored Nov 25, 2024
2 parents cfe6385 + 2a55046 commit 3955633
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ jobs:
name: Lint python files, repository.yaml, and mockup folder structure
runs-on: ubuntu-latest
concurrency:
# Cancel any previous runs with the same workflow name and branch
group: ${{ github.workflow }}-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
strategy:
fail-fast: false
Expand All @@ -25,10 +24,11 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
check-latest: true
python-version-file: "pyproject.toml"
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Install hatch
run: python -m pip install pipx && pipx install hatch
run: uv tool install hatch
- name: Lint Python files
run: hatch run lintformat:lint
- name: Lint repository.yaml and check mockup folder structure
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ license = { file = "LICENSE.txt" }
maintainers = [{ name = "Bas des Tombe", email = "[email protected]" }]
name = "nhflodata"
readme = "README.md"
requires-python = ">=3.9"
requires-python = "==3.11"
version = "1.1.0"

dependencies = ["pyyaml>=6.0.1"]
Expand Down

0 comments on commit 3955633

Please sign in to comment.