Skip to content

Commit ce06747

Browse files
author
Steven Murray
committed
style: run pre-commit
1 parent e20d3e2 commit ce06747

3 files changed

Lines changed: 19 additions & 6 deletions

File tree

.pre-commit-config.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,16 @@ repos:
2222
rev: v1.10.0
2323
hooks:
2424
- id: rst-backticks
25+
26+
27+
28+
- repo: https://github.com/astral-sh/ruff-pre-commit
29+
# Ruff version.
30+
rev: v0.14.14
31+
hooks:
32+
# Run the linter.
33+
- id: ruff
34+
args: [--fix]
35+
36+
# Run the formatter.
37+
- id: ruff-format

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,17 @@ docs = [
4747
"numpydoc>=0.8.0",
4848
"nbsphinx"
4949
]
50-
50+
5151
tests = [
5252
"coverage>=4.5.1",
5353
"pytest>=3.5.1",
54-
"pytest-cov>=2.5.1",
54+
"pytest-cov>=2.5.1",
5555
"mpmath>=1.0.0",
5656
"colossus>=1.2.1",
5757
"halomod>=1.4.6",
5858
"numba",
5959
]
60-
60+
6161
dev = [
6262
"hmf[docs,tests]",
6363
"ruff",
@@ -183,4 +183,4 @@ property-decorators = [
183183
]
184184

185185
[tool.ruff.lint.mccabe]
186-
max-complexity = 21
186+
max-complexity = 21

ruff_failures.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ W291 Trailing whitespace
276276
--> docs/examples/your_first_plot.ipynb:cell 3:6:19
277277
|
278278
5 | # This just serves to render plots inline in the notebook. Do not use in a script.
279-
6 | %matplotlib inline
279+
6 | %matplotlib inline
280280
| ^^^^^^^^^^^^^^^
281281
|
282282
help: Remove trailing whitespace
@@ -309,7 +309,7 @@ W293 Blank line contains whitespace
309309
|
310310
4 | mf.update(z=z)
311311
5 | plt.plot(mf.m,mf.dndm,color="darkblue",alpha=1-z)
312-
6 |
312+
6 |
313313
| ^^^^
314314
7 | plt.xscale('log')
315315
8 | plt.yscale('log')

0 commit comments

Comments
 (0)