Skip to content

Commit 4627c10

Browse files
committed
STY: migrate formatting from black to ruff-format
1 parent 529569c commit 4627c10

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,10 @@ repos:
1616
- id: check-executables-have-shebangs
1717
- id: check-shebang-scripts-are-executable
1818

19-
- repo: https://github.com/psf/black-pre-commit-mirror
20-
rev: 23.12.1
21-
hooks:
22-
- id: black
23-
language_version: python3
24-
25-
- repo: https://github.com/adamchainz/blacken-docs
26-
rev: 1.16.0
27-
hooks:
28-
- id: blacken-docs
29-
additional_dependencies: [black==23.9.1]
30-
3119
- repo: https://github.com/astral-sh/ruff-pre-commit
32-
rev: v0.1.9
20+
rev: v0.3.4
3321
hooks:
22+
- id: ruff-format
3423
- id: ruff
3524
args: [--fix]
3625

cmyt/colormaps/pastel.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
/ 255.0
1414
)
1515
_kamae_grn = (
16-
np.minimum(
17-
255, 70.0 * np.sin(8.7 * (_vs**1.26) - 2.418) + 151.7 * _vs**0.5 + 70.0
18-
)
16+
np.minimum(255, 70.0 * np.sin(8.7 * (_vs**1.26) - 2.418) + 151.7 * _vs**0.5 + 70.0)
1917
/ 255.0
2018
)
2119
_kamae_blu = (

0 commit comments

Comments
 (0)