Skip to content

Commit 9d319a5

Browse files
authored
Add pyproject-fmt (#85)
1 parent 30a7811 commit 9d319a5

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,7 @@ repos:
7373
hooks:
7474
- id: check-hooks-apply
7575
- id: check-useless-excludes
76+
- repo: https://github.com/tox-dev/pyproject-fmt
77+
rev: "0.9.2"
78+
hooks:
79+
- id: pyproject-fmt

pyproject.toml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ requires = [
66
]
77

88
[project]
9-
name = "sphinx_argparse_cli"
9+
name = "sphinx-argparse-cli"
1010
description = "render CLI arguments (sub-commands friendly) defined by argparse module"
1111
readme = "README.md"
1212
keywords = [
@@ -54,6 +54,22 @@ version.source = "vcs"
5454
[tool.black]
5555
line-length = 120
5656

57+
[tool.isort]
58+
known_first_party = ["sphinx_argparse_cli", "tests"]
59+
profile = "black"
60+
line_length = 120
61+
62+
[tool.flake8]
63+
max-complexity = 22
64+
max-line-length = 120
65+
unused-arguments-ignore-abstract-functions = true
66+
noqa-require-code = true
67+
dictionaries = ["en_US", "python", "technical", "django"]
68+
ignore = [
69+
"E203", # whitespace before ':'
70+
"W503", # line break before binary operator
71+
]
72+
5773
[tool.coverage]
5874
html.show_contexts = true
5975
html.skip_covered = false
@@ -64,26 +80,10 @@ run.parallel = true
6480
run.plugins = ["covdefaults"]
6581
run.relative_files = true
6682

67-
[tool.isort]
68-
known_first_party = ["sphinx_argparse_cli", "tests"]
69-
profile = "black"
70-
line_length = 120
71-
7283
[tool.mypy]
7384
python_version = "3.11"
7485
show_error_codes = true
7586
strict = true
7687

7788
[tool.pep8]
7889
max-line-length = "120"
79-
80-
[tool.flake8]
81-
max-complexity = 22
82-
max-line-length = 120
83-
unused-arguments-ignore-abstract-functions = true
84-
noqa-require-code = true
85-
dictionaries = ["en_US", "python", "technical", "django"]
86-
ignore = [
87-
"E203", # whitespace before ':'
88-
"W503", # line break before binary operator
89-
]

0 commit comments

Comments
 (0)