-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
86 lines (76 loc) · 2.01 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
# --- PROJECT CONFIGURATION --- #
[build-system]
requires = [
"setuptools>=67",
"setuptools_scm>=3.4",
"setuptools-git-versioning>=1.13.3",
"wheel",
]
build-backend = "setuptools.build_meta"
# Metadata
# * See https://peps.python.org/pep-0621/
# * Version is set automatically using git tags, see
# https://setuptools-git-versioning.readthedocs.io/en/stable/
[project]
name = "package-name"
dynamic = ["version"]
description = "Template repository showing how to create a modern Python microservice"
readme = {file = "README.md", content-type = "text/markdown"}
requires-python = ">=3.10.0"
license = {text = "MIT License"}
authors = [
{ name = "Change Me", email = "changeme@email.com"}
]
classifiers = ["Programming Language :: Python :: 3"]
dependencies = [
"docopt == 0.6.2",
"numpy == 1.24.2",
"pathlib == 1.0.1",
"psutil == 5.9.5",
"requests == 2.31.0",
"structlog == 22.1.0",
"urllib3 == 1.26.15",
]
[project.optional-dependencies]
dev = [
"ruff == 0.0.259",
"unittest-xml-reporting == 3.2.0",
]
[project.scripts]
# Set the entrypoint for the CLI
packagename = "package_name.cmd.main:main"
[project.urls]
repository = "https://github.com/path/to/repo"
[tool.setuptools-git-versioning]
enabled = true
# --- LINTING AND TYPING CONFIGURATION --- #
# MyPy configuration
# * See https://mypy.readthedocs.io/en/stable/index.html
[tool.mypy]
python_version = "3.10"
plugins = [
'numpy.typing.mypy_plugin'
]
# Ruff configuration
# * See https://beta.ruff.rs/docs/
[tool.ruff]
select = [
"F", # pyflakes
"E", # pycodestyle
"W", # whitespace and newlines
"I", # isort
"UP", # modernize
"ANN", # flake8 type annotations
"S", # flake8 bandit
"B", # flake8 bugbear
"C4", # flake8 comprehensions
"T20", # flake8 print
"SIM", # flake8 simplify
"ARG", # flake8 unused arguments
"D", # pydocstyle
]
line-length = 100
ignore = ["D203", "D213", "ANN101"]
exclude = ["__init__.py"]
[tool.ruff.per-file-ignores]
"test*" = ["D", "ANN"]