Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjc123 committed Oct 23, 2024
1 parent ff10fc2 commit 8424c4a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/full-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,7 @@ jobs:
env:
PYTORCH_VER: ${{ matrix.vers.pt_ver }}
TORCHVISION_VER: ${{ matrix.vers.tv_ver }}
run: |
if [[ "$RUNNER_OS" == "Linux" && "$TORCHVISION_VER" == "latest" && "$PYTORCH_VER" == "latest" ]]; then
pip install black 'ruff<0.0.234' 'tensorflow<2.12' pytest scipy interval
else
pip install black 'ruff<0.0.234' tensorflow pytest scipy interval
fi
run: pip install black==22.3.0 ruff tensorflow pytest scipy interval
- name: Lint checks
run: python -m ruff .
- name: Run tests
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,11 @@ jobs:
env:
PYTORCH_VER: ${{ matrix.vers.pt_ver }}
TORCHVISION_VER: ${{ matrix.vers.tv_ver }}
run: |
if [[ "$RUNNER_OS" == "Linux" && "$TORCHVISION_VER" == "latest" && "$PYTORCH_VER" == "latest" ]]; then
pip install black 'ruff<0.0.234' 'tensorflow<2.12' scipy interval
else
pip install black 'ruff<0.0.234' tensorflow scipy interval
fi
run: pip install black==22.3.0 ruff tensorflow scipy interval
- name: Lint checks
run: python -m ruff .
- name: Style checks
run: python -m black .
run: python -m black --check .
- name: Run unit tests
run: |
cd tests
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ exclude = [
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"

target-version = "py36"
target-version = "py39"

[tool.ruff.per-file-ignores]
"tinynn/converter/schemas/torch/*.py" = ["E501"]
Expand Down

0 comments on commit 8424c4a

Please sign in to comment.