-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
96 lines (82 loc) · 2.03 KB
/
pyproject.toml
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# ... other project metadata fields as specified in:
# https://packaging.python.org/en/latest/specifications/declaring-project-metadata/
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "my-project-name"
authors = [
{name = "Fernando Badilla", email = "fbadilla@ing.uchile.cl"},
]
description = "My project description"
readme = "README.md"
requires-python = ">=3.10"
keywords = ["template", "package"]
license = {text = "GPLv3"} # , file = "LICENSE.txt"
classifiers = [
"Programming Language :: Python :: 3",
]
dependencies = [
"numpy",
'importlib-metadata',
]
dynamic = ["version"]
[tool.setuptools_scm]
version_file = "src/mypkg/_version.py"
# FIXME: This is not working
# version_files = [
# "src/mypkg/_version.py",
# "src/otherpkg/_version.py"
# ]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = [
"-ra",
"--import-mode=importlib",
]
testpaths = [
"tests",
]
pythonpath = [
"src"
]
# [project.urls]
# homepage = "https://example.com"
# documentation = "https://readthedocs.org"
# repository = "https://github.com"
# changelog = "https://github.com/me/spam/blob/master/CHANGELOG.md"
# [tool.setuptools]
# package-dir = {"" = "src"}
# [tool.setuptools.packages.find]
# where = ["src"]
# [project.scripts]
# my-script = "mypkg.my_module:main"
# [project.gui-scripts]
# spam-gui = "spam:main_gui"
# [project.entry-points."spam.magical"]
# tomatoes = "spam:main_tomatoes"
# [project.optional-dependencies]
# pdf = ["ReportLab>=1.2", "RXP"]
# rest = ["docutils>=0.3", "pack ==1.1, ==1.3"]
# https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html
[tool.black]
enabled = true
line-length = 120
preview = true
[tool.pylint.BASIC]
good-names = ["i",
"j",
"k",
"H",
"W",
"df",
"dt",
"dx",
"dy",
"ok",
"_",
]
[tool.pylint.FORMAT]
max-line-length = 120
[tool.pylsp-mypy]
enabled = true