File tree Expand file tree Collapse file tree 5 files changed +10
-2
lines changed Expand file tree Collapse file tree 5 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,11 @@ repos:
15
15
- id : trailing-whitespace
16
16
exclude : " stress_phystoken|\\ .py,cover$"
17
17
18
+ - repo : https://github.com/astral-sh/ruff-pre-commit
19
+ rev : v0.12.9
20
+ hooks :
21
+ - id : ruff-format
22
+
18
23
- repo : https://github.com/pre-commit/pygrep-hooks
19
24
rev : v1.10.0
20
25
hooks :
Original file line number Diff line number Diff line change @@ -156,13 +156,12 @@ ghrel_template = """
156
156
"""
157
157
158
158
# # RUFF
159
- # We aren't using ruff for real yet.. .
159
+ # We are using ruff for formatting, but not for linting .
160
160
161
161
[tool .ruff ]
162
162
# PYVERSION
163
163
target-version = " py39" # Can't use [project]
164
164
line-length = 100
165
- src = [" coverage" , " tests" ]
166
165
167
166
[tool .ruff .lint ]
168
167
select = [" ALL" ]
Original file line number Diff line number Diff line change 17
17
greenlet
18
18
pylint
19
19
readme_renderer
20
+ ruff
20
21
21
22
# for kitting.
22
23
libsass
Original file line number Diff line number Diff line change @@ -157,6 +157,8 @@ rfc3986==2.0.0
157
157
# via twine
158
158
rich==14.1.0
159
159
# via twine
160
+ ruff==0.12.9
161
+ # via -r requirements/dev.in
160
162
scriv==1.7.0
161
163
# via -r requirements/dev.in
162
164
setuptools==80.9.0
Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ commands =
104
104
# If this command fails, see the comment at the top of doc/cmd.rst
105
105
python -m cogapp -cP --check --verbosity =1 doc/*.rst
106
106
python -m cogapp -cP --check --verbosity =1 .github/workflows/*.yml
107
+ ruff format --check
107
108
python -m pylint -j 0 --notes = --ignore-paths ' doc/_build/.*' {env:LINTABLE}
108
109
check-manifest --ignore ' doc/sample_html/*'
109
110
# If 'build -q' becomes a thing (https://github.com/pypa/build/issues/188),
You can’t perform that action at this time.
0 commit comments