-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
166 lines (143 loc) · 3.37 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
######## Building
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "python-tips-tools"
authors = [{ name = "Pablo V. Parellada", email = "[email protected]" }]
maintainers = [
{ name = "Pablo V. Parellada", email = "[email protected]" },
]
description = "This is an example python project."
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.10"
keywords = ["tutorial"]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
]
dynamic = ["version", "dependencies"]
[project.urls]
repository = "https://github.com/pablovegan/Python-tips-tools"
documentation = "https://pablovegan.github.io/Python-tips-tools/"
[project.optional-dependencies]
test = ["pytest", "pyinstrument"]
lint = ["ruff", "black", "black[jupyter]", "mypy"]
build = ["setuptools", "build", "twine"]
docs = [
"mkdocs",
"mkdocstrings",
"mkdocstrings[python]",
"mkdocs-material",
"Pygments",
"python-markdown-math",
"mkdocs-gen-files",
"mkdocs-literate-nav",
"mkdocs-section-index",
"mkdocs-same-dir",
"mkdocs-autorefs",
"mkdocs-jupyter",
]
dev = ["python-tips-tools[test,lint,build,docs]"]
[project.scripts]
vector = "mypackage.__main__:main"
[tool.setuptools]
platforms = ["unix", "linux", "osx", "cygwin", "win32"]
[tool.setuptools.packages.find]
include = ["mypackage*"] # needed to include subpackages
namespaces = false # to disable scanning PEP 420 namespaces (true by default)
[tool.setuptools.dynamic]
version = { attr = "mypackage._version.__version__" }
dependencies = { file = ["requirements.txt"] }
######## Tools
[tool.pytest.ini_options]
minversion = "7.3"
testpaths = "tests"
[tool.ruff]
line-length = 100
select = ["F", "E"]
extend-select = [
"W",
"I002",
"B",
"UP",
"PLE",
"PLW",
"NPY",
"RUF",
"PD",
"SIM",
"PT",
]
unfixable = ["NPY002"]
ignore = []
fixable = [
"E",
"F",
"W",
"I",
"B",
"UP",
"PLE",
"PLW",
"NPY",
"RUF",
"PD",
"SIM",
"PT",
]
extend-exclude = ["tests", "test"]
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"]
[tool.ruff.isort]
force-single-line = false
force-sort-within-sections = false
lines-after-imports = 2
[tool.ruff.mccabe]
max-complexity = 10
[tool.ruff.pycodestyle]
ignore-overlong-task-comments = true
[tool.ruff.pydocstyle]
convention = "google"
[tool.ruff.flake8-annotations]
allow-star-arg-any = false
ignore-fully-untyped = false
[tool.black]
target-version = ["py310"] # minimium python version
line-length = 100
skip-string-normalization = false
skip-magic-trailing-comma = false
exclude = '''
(
asv_bench/env
| \.egg
| \.git
| \.mypy_cache
| \.tox
| \.venv
| build
| setup.py
)
'''
[tool.mypy]
warn_return_any = true
warn_unused_configs = true
follow_imports = "silent"
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
disallow_subclassing_any = true
strict_optional = true
no_implicit_optional = true
warn_no_return = true
warn_unreachable = true
allow_untyped_globals = false
allow_redefinition = false
local_partial_types = false
implicit_reexport = true
strict_equality = true