Skip to content

Commit

Permalink
Add pyproject-fmt (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborbernat authored Mar 12, 2023
1 parent 018bdba commit 3aa732a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 15 deletions.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,7 @@ repos:
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "0.9.2"
hooks:
- id: pyproject-fmt
26 changes: 13 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ requires = [
]

[project]
name = "pyproject_api"
name = "pyproject-api"
description = "API to interact with the python pyproject.toml based projects"
readme.content-type = "text/markdown"
readme.file = "README.md"
Expand Down Expand Up @@ -64,6 +64,18 @@ version.source = "vcs"
[tool.black]
line-length = 120

[tool.isort]
known_first_party = ["pyproject_api"]
profile = "black"
line_length = 120

[tool.flake8]
max-complexity = 22
max-line-length = 120
unused-arguments-ignore-abstract-functions = true
noqa-require-code = true
dictionaries = ["en_US", "python", "technical", "django"]

[tool.coverage]
html.show_contexts = true
html.skip_covered = false
Expand All @@ -80,11 +92,6 @@ report.omit = []
run.parallel = true
run.plugins = ["covdefaults"]

[tool.isort]
known_first_party = ["pyproject_api"]
profile = "black"
line_length = 120

[tool.mypy]
python_version = "3.11"
show_error_codes = true
Expand All @@ -93,10 +100,3 @@ overrides = [{ module = ["virtualenv.*"], ignore_missing_imports = true }]

[tool.pep8]
max-line-length = "120"

[tool.flake8]
max-complexity = 22
max-line-length = 120
unused-arguments-ignore-abstract-functions = true
noqa-require-code = true
dictionaries = ["en_US", "python", "technical", "django"]
7 changes: 5 additions & 2 deletions tests/demo_pkg_inline/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
[build-system]
requires = []
build-backend = "build"
backend-path = ["."]
requires = [
]
backend-path = [
".",
]

[tool.black]
line-length = 120

0 comments on commit 3aa732a

Please sign in to comment.