-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
157 lines (130 loc) · 3.93 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
####################################################################################################
####### PLEASE READ THE CONTRIBUTING DOCUMENT FIRST BEFORE APPLYING ANY CHANGES TO THIS FILE #######
########################################### SLICKML TEAM ###########################################
####################################################################################################
[tool.poetry]
name = "slickcore"
version = "0.1.0"
description = "SlickCore: Slick Core Functionalities in Python"
license = "MIT"
authors = [
"Amirhessam Tahmassebi <admin@slickml.com>",
]
maintainers = [
"Amirhessam Tahmassebi <admin@slickml.com>",
]
readme = "README.md"
homepage = "https://www.slickml.com"
repository = "https://github.com/slickml/slick-log"
documentation = "https://github.com/slickml/slick-log"
keywords = [
"core",
"utils",
"utilities",
"logging",
"env",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Natural Language :: English",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
packages = [
{ include = "slickcore", from = "src" },
]
include = ["src/slickcore", "*.md"]
exclude = ["assets", "tests"]
[tool.poetry.dependencies]
python = ">=3.9,<3.13"
# --- logging ---
structlog = ">=24.4"
python-json-logger = ">=2.0"
[tool.poetry.dev-dependencies]
# --- package-management ---
pip = ">=22.3"
# --- task-management ---
poethepoet = ">=0.16"
# --- testenv-management ---
tox = ">=3.27"
# --- formatting ---
add-trailing-comma = ">=2.2"
isort = ">=5.10"
black = ">=22.10"
# --- linting ---
flake8 = ">=5.0"
flake8-commas = ">=2.1"
flake8-annotations = ">=2.9"
flake8-comprehensions = ">=3.10"
flake8-eradicate = ">=1.2"
flake8-simplify = ">=0.19"
flake8-tidy-imports = ">=4.8"
flake8-type-checking = ">=2.1"
flake8-typing-imports = ">=1.12"
flake8-use-fstring = ">=1.4"
pep8-naming = ">=0.13"
mypy = ">=0.990"
# --- unit-testing ---
pytest = ">=7.2"
pytest-cov = ">=4.0"
pytest-mock = ">=3.10"
mock = ">=4.0"
coverage = ">=6.5"
assertpy = ">=1.1"
# --- docs ----
sphinx = ">=5.3"
sphinx-autoapi = ">=1.9"
sphinx_design = ">=0.3"
myst-parser = ">=0.18"
furo = ">=2022.9"
[tool.poetry.scripts]
# -- try `poe --help` for options
[tool.poe.tasks]
[tool.poe.tasks.add-trailing-comma]
help = "Format code style via add-trailing-comma"
cmd = "poetry run add-trailing-comma --exit-zero-even-if-changed src/**/*.py tests/**/*.py"
[tool.poe.tasks.black]
help = "Format code style via black"
cmd = "poetry run black --line-length 100 ."
[tool.poe.tasks.isort]
help = "Sort imported libraries via isort"
cmd = "poetry run isort --profile black ."
[tool.poe.tasks.flake8]
help = "Lint code via flake8"
cmd = "poetry run flake8 --verbose --benchmark --color always --config .flake8 ."
[tool.poe.tasks.mypy]
help = "Lint types via mypy"
cmd = "poetry run mypy --config-file mypy.ini ."
[tool.poe.tasks.test]
help = "Run unit-tests via pytest"
cmd = "poetry run python -m pytest --cov=src --cov-report=term --cov-report=html --cov-report=xml --cov-config=.coveragerc --tb=short -ra -v"
[tool.poe.tasks.tox]
help = "Test environments via tox"
cmd = "poetry run tox --conf=tox.ini --root=."
[tool.poe.tasks.format]
help = "Apply all formatting steps"
sequence = [
"add-trailing-comma",
"isort",
"black",
]
[tool.poe.tasks.check]
help = "Check all linting steps"
sequence = [
{ cmd = "poe black --check" },
{ cmd = "poe isort --check-only" },
"flake8",
"mypy",
]
[build-system]
requires = ["poetry-core>=1.9.0"]
build-backend = "poetry.core.masonry.api"