rocm_jax/.pre-commit-config.yaml

36 lines
844 B
YAML
Raw Normal View History

# 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:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- 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'
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.982'
hooks:
- id: mypy
2022-09-13 12:43:51 -07:00
files: (jax/|tests/typing_test\.py)
exclude: jax/_src/basearray.py # Use pyi instead
2023-03-27 15:08:44 -07:00
additional_dependencies: [types-requests==2.28.11, jaxlib==0.4.6, ml_dtypes==0.0.3, numpy==1.21.6, scipy==1.7.3]
- repo: https://github.com/mwouts/jupytext
2023-01-23 14:42:03 -08:00
rev: v1.14.4
hooks:
- id: jupytext
args: [--sync]