-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
79 lines (64 loc) · 1.76 KB
/
pyproject.toml
File metadata and controls
79 lines (64 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
[build-system]
requires = ["setuptools>=69.5.0,<80.0.0"]
build-backend = "setuptools.build_meta"
[project]
# TODO: update with package name in pypi
name = "fp-github-template-example"
authors = [{name="Filipe Pina", email="shelf-corncob-said@duck.com" }]
dynamic = ["version"]
# TODO: one-line description of the package
description = "package example"
readme = "README.md"
requires-python = ">=3.10"
dependencies = []
[dependency-groups]
dev = [
"pytest",
"pytest-cov",
"pytest-socket",
"ruff",
"twine",
]
[project.urls]
# TODO: update this
Homepage = "https://github.com/fopina/python-package-template"
[project.scripts]
# TODO: remove this if package is not a CLI or update it if it is
example-cli = "example.__main__:main"
[tool.setuptools.packages.find]
# TODO: replace example with your package name
include = ["example*"]
[tool.setuptools.dynamic]
# TODO: replace example with your package name
version = {attr = "example.__version__"}
[tool.ruff]
line-length = 120
indent-width = 4
target-version = "py310"
[tool.ruff.lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default.
select = ["E4", "E7", "E9", "F", "I"]
ignore = []
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q --disable-socket"
testpaths = [
"tests",
]
[tool.coverage.run]
# TODO: replace
source = ["example"]
[tool.coverage.report]
show_missing = true
skip_covered = true