Skip to content
Open
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
5 changes: 0 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,5 @@ jobs:
- name: Check out repo
uses: actions/checkout@v5

- name: Set up uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true

- name: Run prek
uses: j178/prek-action@v1
9 changes: 2 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,7 @@ repos:
# MD034: bare URL used
args: [--disable, MD013, MD033, MD041, MD034, "--"]

- repo: local
- repo: https://github.com/astral-sh/ty-pre-commit
rev: v0.0.48
hooks:
- id: ty
name: ty check
entry: env -u VIRTUAL_ENV UV_PROJECT_ENVIRONMENT=.venv_prek uv run --extra test --extra docs ty check
language: python
additional_dependencies: [uv]
types: [python]
pass_filenames: false
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ markers = [
]

[tool.uv]
default-groups = ["dev", "typecheck"]
# make these dependencies mutually exclusive since they use incompatible e3nn versions
# see https://docs.astral.sh/uv/concepts/projects/config/#conflicting-dependencies for more details
conflicts = [
Expand Down Expand Up @@ -179,6 +180,7 @@ conflicts = [

[dependency-groups]
dev = ["prek>=0.3.4", "ty>=0.0.19"]
typecheck = ["torch-sim-atomistic[docs,test]"]

[tool.ty.rules]
unused-ignore-comment = "warn"
Expand Down
Loading