generated from NERC-CEH/python-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
60 lines (48 loc) · 1.32 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
[build-system]
requires = ["setuptools >= 61.0", "autosemver"]
# build-backend = "setuptools.build_meta"
[project]
requires-python = ">3.9.0"
dependencies = [
"autosemver",
"aioboto3",
"boto3",
"botocore",
"fastapi[standard]",
"python-multipart",
"python-dotenv",
"uvicorn",
]
name = "os_api"
dynamic = ["version"]
authors = [{ name = "John Doe", email = "[email protected]" }]
description = "A minimal setup for a template package."
[project.optional-dependencies]
test = ["pytest", "pytest-cov", "parameterized", "httpx", "moto[server]"]
docs = ["sphinx", "sphinx-copybutton", "sphinx-rtd-theme"]
lint = ["ruff"]
dev = ["os_api[test,docs,lint]"]
[tool.setuptools.dynamic]
version = { attr = "os_api.__version__" }
[tool.setuptools.packages.find]
where = ["src"]
include = ["os_api*"]
[tool.pytest.ini_options]
addopts = "--cov=os_api"
markers = [
"slow: Marks slow tests",
]
filterwarnings = [
"ignore::DeprecationWarning:autosemver.*:",
"ignore::DeprecationWarning:pkg_resources.*:",
]
[tool.coverage.run]
omit = ["*__init__.py"]
[tool.ruff]
src = ["src", "tests"]
include = ["src/**.py"]
line-length = 120
[tool.ruff.lint]
select = ["F", "E", "W", "A", "PLC", "PLE", "PLW", "I", "N816", "ANN001", "ANN201", "ANN202", "ANN205", "ANN206"]
[tool.ruff.lint.flake8-type-checking]
strict = true