Skip to content

Commit 2cad13a

Browse files
Merge pull request #2090 from VWS-Python/pyproject-fmt-config
Use pyproject.toml configuration for pyproject-fmt
2 parents d17c294 + 9ddd708 commit 2cad13a

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"[python]": {
33
"editor.codeActionsOnSave": {
4-
"source.fixAll": true
4+
"source.fixAll": "explicit"
55
},
66
"editor.defaultFormatter": "charliermarsh.ruff",
77
"editor.formatOnSave": true

lint.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ linkcheck:
5454

5555
.PHONY: pyproject-fmt
5656
pyproject-fmt:
57-
pyproject-fmt --keep-full-version --check --indent=4 pyproject.toml
57+
pyproject-fmt --check pyproject.toml
5858

5959
.PHONY: fix-pyproject-fmt
6060
fix-pyproject-fmt:
61-
pyproject-fmt --keep-full-version --indent=4 pyproject.toml
61+
pyproject-fmt pyproject.toml
6262

6363
.PHONY: spelling
6464
spelling:

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ dev = [
235235
"pyenchant==3.2.2",
236236
"Pygments==2.17.2",
237237
"pylint==3.0.3",
238-
"pyproject-fmt==1.6.0",
238+
"pyproject-fmt==1.7.0",
239239
"pyright==1.1.348",
240240
"pyroma==4.2",
241241
"pytest==7.4.4",
@@ -268,6 +268,10 @@ vws = ["py.typed"]
268268

269269
[tool.setuptools_scm]
270270

271+
[tool.pyproject-fmt]
272+
indent = 4
273+
keep_full_version = true
274+
271275
[tool.pyright]
272276

273277
typeCheckingMode = "strict"

0 commit comments

Comments
 (0)