Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pre-commit: update hooks & pin using hashes #23285

Merged
merged 1 commit into from
Aug 28, 2024
Merged
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
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: 2c9f875913ee60ca25ce70243dc24d5b6415598c # frozen: v4.6.0
hooks:
- id: check-ast
- id: check-merge-conflict
Expand All @@ -26,12 +26,12 @@ repos:
files: \.py$

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.1
rev: 8b5112a3b2ad121439a2092f8ff548c0d80f2514 # frozen: v0.6.1
hooks:
- id: ruff

- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.11.0'
rev: 'd4911cfb7f1010759fde68da196036feeb25b99d' # frozen: v1.11.2
hooks:
- id: mypy
files: (jax/|tests/typing_test\.py)
Expand All @@ -40,7 +40,7 @@ repos:
args: [--config=pyproject.toml]

- repo: https://github.com/mwouts/jupytext
rev: v1.16.1
rev: 8ed836db64ad5d304f2315e6bfd9049c9142e190 # frozen: v1.16.4
hooks:
- id: jupytext
files: docs/
Expand Down
2 changes: 1 addition & 1 deletion docs/_tutorials/advanced-autodiff.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
language: python
Expand Down
2 changes: 1 addition & 1 deletion docs/_tutorials/advanced-debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
language: python
Expand Down
2 changes: 1 addition & 1 deletion docs/_tutorials/external-callbacks.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
language: python
Expand Down
2 changes: 1 addition & 1 deletion docs/_tutorials/gradient-checkpointing.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
language: python
Expand Down
2 changes: 1 addition & 1 deletion docs/_tutorials/jax-primitives.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
language: python
Expand Down
2 changes: 1 addition & 1 deletion docs/_tutorials/jaxpr.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
language: python
Expand Down
2 changes: 1 addition & 1 deletion docs/autodidax.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
name: python3
Expand Down
2 changes: 1 addition & 1 deletion docs/autodidax.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.16.1
# jupytext_version: 1.16.4
# kernelspec:
# display_name: Python 3
# name: python3
Expand Down
2 changes: 1 addition & 1 deletion docs/automatic-differentiation.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
language: python
Expand Down
2 changes: 1 addition & 1 deletion docs/automatic-vectorization.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
language: python
Expand Down
2 changes: 1 addition & 1 deletion docs/debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
language: python
Expand Down
2 changes: 1 addition & 1 deletion docs/distributed_data_loading.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
language: python
Expand Down
2 changes: 1 addition & 1 deletion docs/ffi.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3 (ipykernel)
language: python
Expand Down
2 changes: 1 addition & 1 deletion docs/jep/9407-type-promotion.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
language: python
Expand Down
2 changes: 1 addition & 1 deletion docs/jit-compilation.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
language: python
Expand Down
2 changes: 1 addition & 1 deletion docs/key-concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
language: python
Expand Down
2 changes: 1 addition & 1 deletion docs/notebooks/Common_Gotchas_in_JAX.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
language: python
Expand Down
2 changes: 1 addition & 1 deletion docs/notebooks/Custom_derivative_rules_for_Python_code.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
name: python3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
name: python3
Expand Down
2 changes: 1 addition & 1 deletion docs/notebooks/How_JAX_primitives_work.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
name: python3
Expand Down
2 changes: 1 addition & 1 deletion docs/notebooks/Neural_Network_and_Data_Loading.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
language: python
Expand Down
2 changes: 1 addition & 1 deletion docs/notebooks/Writing_custom_interpreters_in_Jax.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
language: python
Expand Down
2 changes: 1 addition & 1 deletion docs/notebooks/autodiff_cookbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
language: python
Expand Down
2 changes: 1 addition & 1 deletion docs/notebooks/autodiff_remat.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
name: python3
Expand Down
2 changes: 1 addition & 1 deletion docs/notebooks/convolutions.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
language: python
Expand Down
2 changes: 1 addition & 1 deletion docs/notebooks/external_callbacks.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
name: python3
Expand Down
2 changes: 1 addition & 1 deletion docs/notebooks/neural_network_with_tfds_data.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
language: python
Expand Down
2 changes: 1 addition & 1 deletion docs/notebooks/shard_map.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
language: python
Expand Down
2 changes: 1 addition & 1 deletion docs/notebooks/thinking_in_jax.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
name: python3
Expand Down
2 changes: 1 addition & 1 deletion docs/notebooks/vmapped_log_probs.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
language: python
Expand Down
2 changes: 1 addition & 1 deletion docs/pallas/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3 (ipykernel)
language: python
Expand Down
2 changes: 1 addition & 1 deletion docs/pallas/tpu/distributed.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3 (ipykernel)
language: python
Expand Down
2 changes: 1 addition & 1 deletion docs/pallas/tpu/matmul.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3 (ipykernel)
language: python
Expand Down
2 changes: 1 addition & 1 deletion docs/pallas/tpu/pipelining.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
name: python3
Expand Down
2 changes: 1 addition & 1 deletion docs/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
language: python
Expand Down
2 changes: 1 addition & 1 deletion docs/random-numbers.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
language: python
Expand Down
2 changes: 1 addition & 1 deletion docs/sharded-computation.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
name: python3
Expand Down
2 changes: 1 addition & 1 deletion docs/stateful-computations.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
language: python
Expand Down
2 changes: 1 addition & 1 deletion docs/working-with-pytrees.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jupytext:
extension: .md
format_name: myst
format_version: 0.13
jupytext_version: 1.16.1
jupytext_version: 1.16.4
kernelspec:
display_name: Python 3
language: python
Expand Down