11repos :
22 # Prevents committing directly branches named 'main' and 'master'.
33 - repo : https://github.com/pre-commit/pre-commit-hooks
4- rev : v4.4 .0
4+ rev : v6.0 .0
55 hooks :
66 - id : no-commit-to-branch
77 name : Prevent main branch commits
@@ -12,20 +12,20 @@ repos:
1212 args : ['--maxkb=500']
1313 # Verify that pyproject.toml is well formed
1414 - repo : https://github.com/abravalheri/validate-pyproject
15- rev : v0.12 .1
15+ rev : v0.24 .1
1616 hooks :
1717 - id : validate-pyproject
1818 name : Validate pyproject.toml
1919 description : Verify that pyproject.toml adheres to the established schema.
2020 # Verify that GitHub workflows are well formed
2121 - repo : https://github.com/python-jsonschema/check-jsonschema
22- rev : 0.28.0
22+ rev : 0.36.1
2323 hooks :
2424 - id : check-github-workflows
2525 args : ["--verbose"]
2626 # Automatically sort the imports used in .py files
2727 - repo : https://github.com/pycqa/isort
28- rev : 5.12 .0
28+ rev : 7.0 .0
2929 hooks :
3030 - id : isort
3131 name : Run isort
@@ -44,10 +44,11 @@ repos:
4444 [
4545 " -rn" , # Only display messages
4646 " -sn" , # Don't display the score
47+ " --max-line-length=120" ,
4748 ]
4849 # Analyze the code style and report code that doesn't adhere.
4950 - repo : https://github.com/psf/black
50- rev : 23.7 .0
51+ rev : 26.1 .0
5152 hooks :
5253 - id : black-jupyter
5354 name : Format code using black
@@ -56,27 +57,7 @@ repos:
5657 # supported by your project here, or alternatively use
5758 # pre-commit's default_language_version, see
5859 # https://pre-commit.com/#top_level-default_language_version
59- language_version : python3.10
60- # Make sure Sphinx can build the documentation without issues.
61- - repo : local
62- hooks :
63- - id : sphinx-build
64- name : Build documentation with Sphinx
65- entry : sphinx-build
66- language : system
67- always_run : true
68- exclude_types : [file, symlink]
69- args :
70- [
71- " -T" , # Show full trace back on exception
72- " -E" , # Don't use saved env. always read all files.
73- " -b" , # Flag to select which builder to use
74- " html" , # Use the HTML builder
75- " -d" , # Flag for cached environment and doctrees
76- " ./docs/_build/doctrees" , # directory
77- " ./docs" , # Source directory of documents
78- " ./_readthedocs" , # Output directory for rendered documents.
79- ]
60+ language_version : python3.12
8061 # Run unit tests, verify that they pass. Note that coverage is run against
8162 # the ./src directory here because that is what will be committed. In the
8263 # github workflow script, the coverage is run against the installed package
0 commit comments