Skip to content

Commit 6201ee7

Browse files
authored
Add pyproject-fmt (#52)
1 parent a10cb54 commit 6201ee7

3 files changed

Lines changed: 22 additions & 12 deletions

File tree

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,7 @@ repos:
6868
hooks:
6969
- id: check-hooks-apply
7070
- id: check-useless-excludes
71+
- repo: https://github.com/tox-dev/pyproject-fmt
72+
rev: "0.9.2"
73+
hooks:
74+
- id: pyproject-fmt

pyproject.toml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
[build-system]
2-
requires = ["setuptools>=67.6", "setuptools_scm>=7.1"]
32
build-backend = 'setuptools.build_meta'
4-
5-
[tool.black]
6-
line-length = 120
7-
8-
[tool.isort]
9-
profile = "black"
10-
known_first_party = ["devpi_process"]
3+
requires = [
4+
"setuptools>=67.6",
5+
"setuptools_scm>=7.1",
6+
]
117

128
[tool.setuptools_scm]
139
write_to = "src/devpi_process/version.py"
@@ -17,8 +13,12 @@ write_to_template = """
1713
__version__ = "{version}"
1814
"""
1915

20-
[tool.pep8]
21-
max-line-length = "120"
16+
[tool.black]
17+
line-length = 120
18+
19+
[tool.isort]
20+
profile = "black"
21+
known_first_party = ["devpi_process"]
2222

2323
[tool.flake8]
2424
max-complexity = 22
@@ -29,3 +29,6 @@ dictionaries = ["en_US", "python", "technical", "django"]
2929
ignore = [
3030
"E203", # whitespace before ':'
3131
]
32+
33+
[tool.pep8]
34+
max-line-length = "120"
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
[build-system]
2-
requires = []
32
build-backend = "build"
4-
backend-path = ["."]
3+
requires = [
4+
]
5+
backend-path = [
6+
".",
7+
]

0 commit comments

Comments
 (0)