11repos :
2- - repo : local
3- hooks :
4- - id : sync-dependencies
5- name : update pre-commit-config
6- entry : uv run ci/scripts/pre_commit_sync_pyright_deps.py
7- language : system
8- files : " (pyproject.toml|scripts/.pre-commit-config.yaml.template|.pre-commit.config.yaml)" # the quotes are here to make sure that this stay in line for the formatter.
92 - repo : https://github.com/pre-commit/pre-commit-hooks
10- rev : v4.6 .0
3+ rev : v6.0 .0
114 hooks :
125 - id : check-case-conflict
136 - id : check-toml
2013 - id : check-added-large-files
2114 - id : trailing-whitespace
2215 - repo : https://github.com/asottile/pyupgrade
23- rev : v3.17.0
16+ rev : v3.21.2
2417 hooks :
2518 - id : pyupgrade
2619 name : pyupgrade
@@ -31,47 +24,20 @@ repos:
3124 args : [--py38-plus, --keep-runtime-typing]
3225 files : .*\/__main__.py # We run ruff after pyugprade to remove unused imports
3326 - repo : https://github.com/astral-sh/ruff-pre-commit
34- rev : v0.6.1
27+ rev : v0.14.6
3528 hooks :
3629 - id : ruff # Run the linter.
3730 args : [--fix]
3831 - id : ruff # Sort improts
3932 name : sort imports with ruff
4033 args : [--select, I, --fix]
4134 - id : ruff-format # Run the formatter.
42- - repo : https://github.com/RobertCraigie/pyright-python
43- rev : v1.1.377
35+ - repo : local # Run pyright type checker
4436 hooks :
4537 - id : pyright
46- additional_dependencies : # these dependencies are synced via the first hook
47- - numpy>=1.15; python_version < '3.13'
48- - numpy>=2.1; python_version >= '3.13'
49- - pymongo>=4.1
50- - pandas>=2.2; python_version < '3.13'
51- - pandas>=2.2.3; python_version >= '3.13'
52- - sacred>=0.8.4
53- - pyyaml>=5.1
54- - jsonpickle>=2.2
55- - munch>=4.0
56- - debugpy>=1.2.1
57- - requests>=2.28.1
58- - typer>=0.12
59- - rich>=13.0,<14.1
60- - click>=8.0
61- - omegaconf>=2.3.0
62- - gitignore_parser>=0.1.11
63- - setuptools>=69.2.0
64- - importlib_resources>=5.7.0
65- - typing_extensions>=4.10; python_version < '3.13'
66- - typing_extensions>=4.12; python_version >= '3.13'
67- - deepdiff>=7.0.1
68- - ruff>=0.6.1
69- - pytest>=8.3.2
70- - pre-commit>=3.8.0
71- - filelock>=3.15.4
72- - sshtunnel>=0.4.0
73- - build>=1.2.1
74- - twine>=5.1.1
75- - backports-tarfile>=1.2.0
76- - tuna>=0.5.11
77- files : src/seml/.*\.py
38+ name : pyright check
39+ entry : uv run pyright src/
40+ language : system
41+ types : [python]
42+ pass_filenames : false
43+ always_run : true
0 commit comments