Skip to content

Commit 5a69de8

Browse files
Switch to ruff for formatting instead of black. This helps Language Servers keep the formatting sane.
1 parent 9879eae commit 5a69de8

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ test_coverage:
1515
coverage combine
1616

1717
reformat:
18-
isort --line-width 120 --atomic --project eduid_scimapi --recursive $(SOURCE)
19-
black --line-length 120 --target-version py37 --skip-string-normalization $(SOURCE)
18+
ruff --format $(SOURCE)
2019

2120
typecheck:
2221
mypy --ignore-missing-imports $(SOURCE)

pyproject.toml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
[project]
2+
name = "pyFF"
3+
version = "2.1.5"
4+
readme = "README.rst"
5+
description = "Federation Feeder"
6+
requires-python = ">=3.7"
7+
license = {file = "LICENSE"}
8+
9+
authors = [
10+
{name = "Leif Johansson", email = "[email protected]"},
11+
{name = "Fredrik Thulin", email = "[email protected]"},
12+
{name = "Enrique Pérez Arnaud"},
13+
{name = "Mikael Frykholm", email = "[email protected]"},
14+
]
15+
maintainers = [
16+
{name = "Mikael Frykholm", email = "[email protected]"}
17+
]
18+
19+
[tool.ruff]
20+
# Allow lines to be as long as 120.
21+
line-length = 120
22+
target-version = "py37"
23+
[tool.ruff.format]
24+
quote-style = "preserve"
25+
26+
[tool.build_sphinx]
27+
source-dir = "docs/"
28+
build-dir = "docs/build"
29+
all_files = "1"
30+
31+
[tool.upload_sphinx]
32+
upload-dir = "docs/build/html"

0 commit comments

Comments
 (0)