11ci :
22 autofix_prs : true
3- autoupdate_commit_msg : ' [pre-commit.ci] pre-commit autoupdate'
4- autoupdate_schedule : ' weekly '
3+ autoupdate_commit_msg : ' :technologist: pre-commit autoupdate'
4+ autoupdate_schedule : ' monthly '
55repos :
66 - repo : local
77 hooks :
1111 files : tests/.*\btest_\w*.py
1212 require_serial : true
1313 language : system
14- stages : [push]
14+ stages : [pre- push]
1515 - id : notebook-markdown-format
1616 name : notebook markdown format
1717 entry : python pre-commit/notebook_markdown_format.py
@@ -23,15 +23,15 @@ repos:
2323 - mdformat-black
2424 - mdformat-myst
2525 - repo : https://github.com/executablebooks/mdformat
26- rev : 0.7.17
26+ rev : 0.7.19
2727 hooks :
2828 - id : mdformat
2929 # Optionally add plugins
3030 additional_dependencies :
3131 - mdformat-gfm # GitHub flavoured markdown
3232 - mdformat-black # Black formatting for python verbatim blocks
3333 - repo : https://github.com/pre-commit/pre-commit-hooks
34- rev : v4.5 .0
34+ rev : v5.0 .0
3535 hooks :
3636 - id : check-ast # Simply checks whether the files parse as valid Python.
3737 - id : fix-byte-order-marker # Removes utf-8 byte order marker.
@@ -58,18 +58,13 @@ repos:
5858 - id : rst-backticks # Detect common mistake of using single backticks when writing rst.
5959 - id : rst-directive-colons # Detect mistake of rst directive not ending with double colon.
6060 - id : rst-inline-touching-normal # Detect mistake of inline code touching normal text in rst.
61- - repo : https://github.com/psf/black
62- rev : 23.11.0 # Replace with any tag/version: https://github.com/psf/black/tags
63- hooks :
64- - id : black
65- language_version : python3 # Should be a command that runs python3.+
66- additional_dependencies : ['click==8.0.4'] # Currently >8.0.4 breaks black
67- - id : black-jupyter
68- language : python
6961 - repo : https://github.com/astral-sh/ruff-pre-commit
7062 # Ruff version.
71- rev : v0.1.7
63+ rev : v0.8.2
7264 hooks :
7365 - id : ruff
7466 args : [--fix, --exit-non-zero-on-fix]
7567 types_or : [python, pyi, jupyter]
68+ # Run the formatter.
69+ - id : ruff-format
70+ types_or : [ python, pyi, jupyter ]
0 commit comments