-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathpyproject.toml
More file actions
74 lines (61 loc) · 1.68 KB
/
pyproject.toml
File metadata and controls
74 lines (61 loc) · 1.68 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
[build-system]
requires = ["flit_core >=2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "example-project"
authors = [
{name = "Pablo Salvador", email = "pablosalvadorlopez11@gmail.com"},
{name = "Marcin Jimenez", email = "marcin.jimenez@gmail.com"}
]
description = "An example project demonstrating pyproject.toml"
readme = "README.md"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.8"
]
requires-python = ">=3.8,<4.0"
dynamic = ["version"]
[project.optional-dependencies]
extras = [
"optional_package_1",
"optional_package_2"
]
[project.urls]
homepage = "https://example.com"
repository = "https://github.com/username/example-project"
documentation = "https://example.com/docs"
[tool.flit.metadata]
module = "example_project"
author-email = "john.doe@example.com"
[tool.flit.scripts]
example-script = "example_project:main"
[tool.bandit]
exclude_dirs = ["tests/"]
tests = ["B201", "B301"]
skips = ["B101", "B601"]
[tool.black]
line-length = 88
[tool.mypy]
ignore_missing_imports = true
files = "src/"
exclude = "utils|tests"
[tool.ruff]
line-length = 124
ignore = ["E501"]
[tool.isort]
profile = "black"
[tool.flake8]
max-line-length = 124
[tool.pytest]
addopts = "-vv --cov=. --cov-report xml:/tmp/coverage.xml --cov-report html:/tmp/coverage_html --cov-report term-missing"
log_cli = true
log_cli_level = "DEBUG"
norecursedirs = ".git __pycache__ docs"
log_format = "%(asctime)s - %(levelname)-8s %(message)s (%(filename)s:%(funcName)s:%(lineno)d)"
log_level = "info"
[tool.pytest.ini_options]
markers = [
"evaluation: mark test as an evaluation test",
]