-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
72 lines (62 loc) · 1.83 KB
/
pyproject.toml
File metadata and controls
72 lines (62 loc) · 1.83 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
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
where = ["src"] # list of folders that contain the packages (["."] by default)
[project]
name = "mypackagename"
dynamic = ["version"]
dependencies = [
"requests"
]
requires-python = ">=3.10"
authors = [
{name = "Omar Abdelgawad", email = "pradyun@example.com"},
]
description = "A package for bla bla."
readme = "README.md"
license = {file = "LICENSE"}
keywords = ["image-to-image-translation", "GAN", "vision", "deep-learning"]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
[tool.setuptools.dynamic]
version = {attr = "mypackagename.__version__"} # any module attribute compatible with ast.literal_eval
[dependency-groups]
dev = ["mypy", "ruff", "pytest", "pytest-cov", "tox", "pre-commit"]
# # have to install it with `uv sync --extra bar`
# [project.optional-dependencies]
# bar = [
# "cowsay",
# ]
[tool.setuptools.package-data]
firstpkg = ["py.typed"]
secondpkg = ["py.typed"]
[project.urls]
Repository = "https://github.com/me/spam.git"
###################################################################################################
[tool.pytest.ini_options]
addopts = "--cov=firstpkg --cov=secondpkg" #include all packages under src directory
testpaths = [
"tests",
]
[tool.mypy]
mypy_path = "src"
check_untyped_defs = true
disallow_any_generics = true
ignore_missing_imports = true
no_implicit_optional = true
show_error_codes = true
strict_equality = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_configs = true
no_implicit_reexport = true
[tool.ruff]
src = ["src"]
[tool.ruff.lint]
extend-select = ["UP","I"]