Skip to content

Commit

Permalink
Fix running hatch commands in CI (for real), fix WorkshopManifest usa…
Browse files Browse the repository at this point in the history
…ge (WIP)
  • Loading branch information
tuokri committed Jan 25, 2025
1 parent 0af8dad commit 1176c32
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/python_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ jobs:
- name: Check types with MyPy
if: always()
run: |
hatch run test:run_mypy ${{ github.workspace }}
hatch run test:run_mypy
- name: Lint code with Ruff
if: always()
run: |
hatch run test:run_ruff ${{ github.workspace }}
hatch run test:run_ruff
- name: Check import sorting
if: always()
run: |
hatch run test:run_isort ${{ github.workspace }}
hatch run test:run_isort
3 changes: 3 additions & 0 deletions bobuild/workshop.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,11 @@ def make_sws_manifest(
manifest = WorkshopManifest(
workshop_item_id=item_id,
git_hash=git_hash,
git_tag="null", # TODO
hg_packages_hash=hg_packages_hash,
hg_packages_tag="null", # TODO
hg_maps_hash=hg_maps_hash,
hg_maps_tag="null", # TODO
build_id=build_id,
build_time_utc=build_time_utc,
file_to_md5=file_to_md5,
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ dependencies = [
]

[tool.hatch.envs.test.scripts]
run_mypy = "mypy --show-error-codes"
run_ruff = "ruff check"
run_isort = "isort --check-only"
run_mypy = "mypy --show-error-codes . -v"
run_ruff = "ruff check . -v"
run_isort = "isort --check-only . -v"

[tool.isort]
case_sensitive = true
Expand Down

0 comments on commit 1176c32

Please sign in to comment.