-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
75 lines (67 loc) · 1.48 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
[build-system]
requires = ["flit_core==3.8.0"]
build-backend = "flit_core.buildapi"
[project]
name = "pytemplate"
authors = [
{ name = "rzayev sehriyar", email = "[email protected]" },
]
dynamic = ["version"]
description = "This is a Python Project Template"
# Add here the production dependencies
dependencies = []
[project.optional-dependencies]
dev = [
"black",
"isort",
"autoflake",
"pytype; platform_system != 'Windows'",
"flake8",
"Flake8-pyproject",
"bandit",
"flake8-bugbear",
"flake8-cognitive-complexity",
"pre-commit",
"safety",
"pip-audit",
]
test = [
"pytest",
"pytest-cov",
"pytest-xdist",
"hypothesis==6.111.0",
]
[tool.isort]
profile = "black"
line_length = 140
py_version = 311
order_by_type = false
skip = [".gitignore", ".dockerignore"]
extend_skip = [".md", ".json"]
skip_glob = ["docs/*"]
[tool.flake8]
max-line-length = 140
select = ["C", "E", "F", "W", "B", "B9"]
ignore = ["E203", "E501", "W503", "C812", "E731", "F811"]
exclude = ["__init__.py"]
[tool.black]
line-length = 140
target-version = ['py311']
include = '\.pyi?$'
[tool.bandit]
skips = ["B311", "B404"]
[tool.pytest.ini_options]
pythonpath = [
"src"
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration relatively slow (deselect with '-m \"not integration\"')",
"serial",
]
addopts = [
"--strict-markers",
"--strict-config",
"-ra",
]
testpaths = "tests"