1+ ci :
2+ autoupdate_schedule : quarterly
13repos :
2- - repo : https://github.com/psf/black
3- rev : 23.12.1
4- hooks :
5- - id : black
6- name : black
7- description : " Black: The uncompromising Python code formatter"
8- entry : black
9- language : python
10- language_version : python3
11- minimum_pre_commit_version : 2.9.2
12- require_serial : true
13- types_or : [python, pyi]
14- - id : black-jupyter
15- name : black-jupyter
16- description :
17- " Black: The uncompromising Python code formatter (with Jupyter Notebook support)"
18- entry : black
19- language : python
20- minimum_pre_commit_version : 2.9.2
21- require_serial : true
22- types_or : [python, pyi, jupyter]
23- additional_dependencies : [".[jupyter]"]
24-
25- - repo : https://github.com/pycqa/flake8
26- rev : 7.0.0
27- hooks :
28- - id : flake8
29- additional_dependencies :
30- - flake8-bugbear
31- - flake8-comprehensions
32- - flake8-simplify
33-
34- - repo : https://gitlab.com/kennon.mckeever/nbhooks
35- rev : 1.0.1
36- hooks :
37- - id : nb-ensure-clean
38- name : nb-ensure-clean
39- description : Ensure that committed Jupyter notebooks contain no outputs.
40- entry : nb-ensure-clean
41- files : \.ipynb$
42- language : python
43-
44- - repo : https://github.com/asottile/pyupgrade
45- rev : v3.15.0
46- hooks :
47- - id : pyupgrade
48- args : [--py310-plus]
49-
50- - repo : https://github.com/asottile/reorder-python-imports
51- rev : v3.12.0
52- hooks :
53- - id : reorder-python-imports
54- args : [--py310-plus, --add-import, "from __future__ import annotations"]
4+ - repo : https://github.com/astral-sh/ruff-pre-commit
5+ rev : v0.8.1
6+ hooks :
7+ # Run the linter
8+ - id : ruff
9+ args : [ --fix ]
10+ # Run the formatter
11+ - id : ruff-format
5512
5613- repo : https://github.com/pre-commit/pre-commit-hooks
5714 rev : v4.5.0
@@ -75,20 +32,10 @@ repos:
7532 .gitignore
7633 )
7734
78- - repo : https://github.com/PyCQA/pydocstyle
79- rev : 6.3.0
80- hooks :
81- - id : pydocstyle
82- files : bmipy/.*\.py$
83- args :
84- - --convention=numpy
85- - --add-select=D417
86- additional_dependencies : [".[toml]"]
87-
8835 - repo : https://github.com/pre-commit/mirrors-mypy
8936 rev : v1.8.0
9037 hooks :
9138 - id : mypy
92- language_version : python3.12
93- additional_dependencies : [types-all]
39+ # language_version: python3.12
40+ # additional_dependencies: [types-all]
9441 files : src/.*\.py$
0 commit comments