Skip to content

Commit 4d06897

Browse files
authored
Add pyproject-fmt (#150)
1 parent d32fd04 commit 4d06897

File tree

2 files changed

+19
-15
lines changed

2 files changed

+19
-15
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: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ name = "platformdirs"
1010
description = "A small Python package for determining appropriate platform-specific dirs, e.g. a \"user data dir\"."
1111
readme = "README.rst"
1212
keywords = [
13+
"appdirs",
1314
"application",
1415
"cache",
1516
"directory",
1617
"log",
1718
"user",
18-
"appdirs",
1919
]
2020
license = "MIT"
2121
maintainers = [
@@ -71,6 +71,20 @@ build.hooks.vcs.version-file = "src/platformdirs/version.py"
7171
build.targets.sdist.include = ["/src", "/tests"]
7272
version.source = "vcs"
7373

74+
[tool.black]
75+
line-length = 120
76+
77+
[tool.isort]
78+
profile = "black"
79+
known_first_party = ["platformdirs"]
80+
81+
[tool.flake8]
82+
max-complexity = 22
83+
max-line-length = 120
84+
unused-arguments-ignore-abstract-functions = true
85+
noqa-require-code = true
86+
dictionaries = ["en_US", "python", "technical", "django"]
87+
7488
[tool.coverage]
7589
html.show_contexts = true
7690
html.skip_covered = false
@@ -80,13 +94,6 @@ report.fail_under = 76
8094
run.parallel = true
8195
run.plugins = ["covdefaults"]
8296

83-
[tool.black]
84-
line-length = 120
85-
86-
[tool.isort]
87-
profile = "black"
88-
known_first_party = ["platformdirs"]
89-
9097
[tool.mypy]
9198
python_version = "3.11"
9299
show_error_codes = true
@@ -95,10 +102,3 @@ overrides = [{ module = ["appdirs.*", "jnius.*"], ignore_missing_imports = true
95102

96103
[tool.pep8]
97104
max-line-length = "120"
98-
99-
[tool.flake8]
100-
max-complexity = 22
101-
max-line-length = 120
102-
unused-arguments-ignore-abstract-functions = true
103-
noqa-require-code = true
104-
dictionaries = ["en_US", "python", "technical", "django"]

0 commit comments

Comments
 (0)