Skip to content

Commit

Permalink
Add pyproject-fmt (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborbernat committed Mar 12, 2023
1 parent d32fd04 commit 4d06897
Show file tree
Hide file tree
Showing 2 changed files with 19 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 @@ -73,3 +73,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
30 changes: 15 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ name = "platformdirs"
description = "A small Python package for determining appropriate platform-specific dirs, e.g. a \"user data dir\"."
readme = "README.rst"
keywords = [
"appdirs",
"application",
"cache",
"directory",
"log",
"user",
"appdirs",
]
license = "MIT"
maintainers = [
Expand Down Expand Up @@ -71,6 +71,20 @@ build.hooks.vcs.version-file = "src/platformdirs/version.py"
build.targets.sdist.include = ["/src", "/tests"]
version.source = "vcs"

[tool.black]
line-length = 120

[tool.isort]
profile = "black"
known_first_party = ["platformdirs"]

[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,13 +94,6 @@ report.fail_under = 76
run.parallel = true
run.plugins = ["covdefaults"]

[tool.black]
line-length = 120

[tool.isort]
profile = "black"
known_first_party = ["platformdirs"]

[tool.mypy]
python_version = "3.11"
show_error_codes = true
Expand All @@ -95,10 +102,3 @@ overrides = [{ module = ["appdirs.*", "jnius.*"], 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"]

0 comments on commit 4d06897

Please sign in to comment.