2021-02-10 06:39:35 -08:00
|
|
|
# Install the pre-commit hooks below with
|
|
|
|
# 'pre-commit install'
|
|
|
|
|
|
|
|
# Auto-update the version of the hooks with
|
|
|
|
# 'pre-commit autoupdate'
|
|
|
|
|
|
|
|
# Run the hooks on all files with
|
|
|
|
# 'pre-commit run --all'
|
|
|
|
|
|
|
|
repos:
|
2023-03-23 21:17:54 +00:00
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
|
|
rev: v4.3.0
|
|
|
|
hooks:
|
2023-03-30 13:29:50 -07:00
|
|
|
- id: end-of-file-fixer
|
|
|
|
# only include python files
|
|
|
|
files: \.py$
|
|
|
|
- id: debug-statements
|
|
|
|
# only include python files
|
|
|
|
files: \.py$
|
2023-03-23 21:17:54 +00:00
|
|
|
- id: trailing-whitespace
|
|
|
|
# only include python files
|
|
|
|
files: \.py$
|
|
|
|
|
2022-11-15 13:32:48 -08:00
|
|
|
- repo: https://github.com/pycqa/flake8
|
2023-01-23 09:47:13 -08:00
|
|
|
rev: '6.0.0'
|
2021-02-10 13:44:40 -08:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|
|
|
|
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
2023-08-16 14:26:04 -07:00
|
|
|
rev: 'v1.5.0'
|
2021-02-10 13:44:40 -08:00
|
|
|
hooks:
|
|
|
|
- id: mypy
|
2022-09-13 12:43:51 -07:00
|
|
|
files: (jax/|tests/typing_test\.py)
|
2022-09-23 09:59:46 -07:00
|
|
|
exclude: jax/_src/basearray.py # Use pyi instead
|
2023-08-16 14:26:04 -07:00
|
|
|
additional_dependencies: [types-requests==2.31.0, jaxlib==0.4.14, ml_dtypes==0.2.0, numpy==1.24.3, scipy==1.10.1]
|
2023-04-15 02:39:39 +01:00
|
|
|
args: [--config=pyproject.toml]
|
2021-02-10 13:44:40 -08:00
|
|
|
|
|
|
|
- repo: https://github.com/mwouts/jupytext
|
2023-07-24 11:51:45 -07:00
|
|
|
rev: v1.14.7
|
2021-02-10 13:44:40 -08:00
|
|
|
hooks:
|
|
|
|
- id: jupytext
|
|
|
|
args: [--sync]
|