Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/ci-with-bnp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ jobs:
- name: Install Hatch
run: pipx install hatch==${{ env.HATCH_VERSION }}
- name: Lint
run: hatch fmt
run: hatch check code
- name: Format
run: hatch check fmt

unit-test:
runs-on: ubuntu-24.04
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ jobs:
- name: Install Hatch
run: pipx install hatch==${{ env.HATCH_VERSION }}
- name: Lint
run: hatch fmt
run: hatch check code
- name: Format
run: hatch check fmt

unit-test:
runs-on: ubuntu-24.04
Expand Down
8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,15 @@ dependencies = ["ipython==9.4.0"]
[tool.hatch.envs.default.scripts]
development = "python function/main.py --insecure --debug"

# This special environment is used by hatch fmt.
[tool.hatch.envs.hatch-static-analysis]
# These special environments are used by hatch check code and hatch check fmt.
[tool.hatch.envs.hatch-check-code]
dependencies = ["ruff==0.12.7"]
config-path = "none" # Disable Hatch's default Ruff config.

[tool.hatch.envs.hatch-check-fmt]
dependencies = ["ruff==0.12.7"]
config-path = "none"

[tool.ruff]
target-version = "py313"
exclude = ["function/proto/*"]
Expand Down