-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
116 lines (103 loc) · 2.89 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
# Copyright 2024 Michael Käser
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "eventlib-py"
version = "1.0.0"
description = "A Python event framework to decouple code using events."
authors = ["Michael Käser <[email protected]>"]
license = "(Apache-2.0 OR MIT)"
readme = "README.md"
packages = [
{ include = "eventlib" },
{ include = "tests", format = "sdist" },
]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Framework :: AsyncIO",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Typing :: Typed",
]
[tool.poetry.dependencies]
python = "^3.11"
[tool.poetry.group.dev.dependencies]
pytest = "^8.3"
pytest-asyncio = "*"
pytest-cov = "*"
pytest-mock = "*"
pylint = "^3.2"
mypy = "^1.11"
black = "^24.4"
isort = "^5.13"
[tool.poetry.group.benchmark.dependencies]
numpy = "^2.0.1"
matplotlib = "^3.9.1"
pandas = "^2.2.2"
pandas-stubs = "*"
tqdm = "^4.66.5"
types-tqdm = "*"
tabulate = "^0.9"
attrs = "^24.2"
pydantic = "^2.8"
# ==================================================================================================
# Mypy
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
exclude = ["^\\.?venv"]
# ==================================================================================================
# Pylint
[tool.pylint.master]
recursive = true
output-format = "colorized"
ignore = [
"venv",
".venv",
".run",
".vscode",
".idea",
".mypy_cache",
".pytest_cache",
"build",
]
[tool.pylint.format]
max-line-length = 120
[tool.pylint.basic]
class-rgx = "[A-Z_][a-zA-Z0-9]*$"
# ==================================================================================================
# Black
[tool.black]
line-length = 120
target-version = ['py311']
# ==================================================================================================
# Isort
[tool.isort]
py_version = "311"
line_length = 120
profile = "black"
src_paths = [".", "tests"]
# ==================================================================================================
# Pytest
[tool.pytest.ini_options]
addopts = ["--import-mode=importlib"]
[tool.coverage.run]
omit = ["tests/*", "examples/*", "benchmark/*", "venv/*", ".venv/*"]
# ==================================================================================================
# Semantic Release
[tool.semantic_release]
branch = "main"
version_toml = ["pyproject.toml:tool.poetry.version"]
major_on_zero = true
changelog_file = "CHANGELOG.md"
build_command = "poetry build"
upload_to_vcs_release = true
dist_glob_patterns = ["dist/*"]