Skip to content

Commit

Permalink
Move typecheck to pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Hofer-Julian committed Oct 21, 2024
1 parent f58875c commit e9d0890
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/test_downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,5 @@ jobs:
New-Item -ItemType Directory -Force -Path "${{ env.TARGET_RELEASE }}"
Move-Item -Path "pixi_bin/pixi-${{ matrix.arch.target }}${{ matrix.arch.extension }}" -Destination "${{ env.TARGET_RELEASE }}/pixi.exe"
shell: pwsh
- name: Typecheck integration tests
if: runner.os == 'Linux'
run: ${{ env.TARGET_RELEASE }}/pixi${{ matrix.arch.extension }} run typecheck-integration
- name: Run integration tests
run: ${{ env.TARGET_RELEASE }}/pixi${{ matrix.arch.extension }} run test-integration-ci
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ repos:
language: system
types_or: [python, pyi]
require_serial: true
# Typecheck python tests
- id: typecheck-tests
name: typecheck-tests
entry: pixi run typecheck-tests
language: system
types_or: [python, pyi]
pass_filenames: false
# typos
- id: typos
name: typos
Expand Down
2 changes: 1 addition & 1 deletion tests/wheel_tests/read_wheels.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def target_iter(self) -> Iterable[str]:
return []

@classmethod
def __from_toml(cls, spec: dict[str, str] | str) -> Self:
def __from_toml(cls, spec: dict[str, Any] | str) -> Self:
if isinstance(spec, str):
return cls(version=spec, extras=None, target=None, system_requirements=None)
if isinstance(spec, dict):
Expand Down

0 comments on commit e9d0890

Please sign in to comment.