Skip to content

Commit

Permalink
moved tools to pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyminium committed Nov 1, 2023
1 parent 6af57b8 commit d49c159
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 36 deletions.
23 changes: 23 additions & 0 deletions {{cookiecutter.repo_name}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,26 @@ match = ["*"]
distance = "{base_version}+{distance}.{vcs}{rev}"
dirty = "{base_version}+{distance}.{vcs}{rev}.dirty"
distance-dirty = "{base_version}+{distance}.{vcs}{rev}.dirty"

[tool.coverage.run]
omit = [
# Omit the tests
"*/tests/*",
]

[tool.coverage.report]
exclude_also = [
"if TYPE_CHECKING:",
]

[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
line_length = 80

[tool.yapf]
COLUMN_LIMIT = 80
INDENT_WIDTH = 4
USE_TABS = false
37 changes: 1 addition & 36 deletions {{cookiecutter.repo_name}}/setup.cfg
Original file line number Diff line number Diff line change
@@ -1,41 +1,6 @@
# Helper file to handle all configs

[coverage:run]
# .coveragerc to control coverage.py and pytest-cov
omit =
# Omit the tests
*/tests/*

[coverage:report]
exclude_also =
if TYPE_CHECKING:

[isort]
multi_line_output = 3
include_trailing_comma = True
force_grid_wrap = 0
use_parentheses = True
line_length = 80


[yapf]
# YAPF, in .style.yapf files this shows up as "[style]" header
COLUMN_LIMIT = 80
INDENT_WIDTH = 4
USE_TABS = False

[flake8]
# Flake8, PyFlakes, etc
# flake8 does not support pyproject.toml currently
max-line-length = 80

[aliases]
test = pytest

[tool:pytest]
testpaths = {{cookiecutter.repo_name}}/tests

[build_sphinx]
all-files = 1
source-dir = docs/
build-dir = docs/_build
warning-is-error = 1

0 comments on commit d49c159

Please sign in to comment.