-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
70 lines (62 loc) · 1.31 KB
/
pyproject.toml
File metadata and controls
70 lines (62 loc) · 1.31 KB
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
# pyproject.toml - Configuration for Python tools
[tool.black]
line-length = 100
target-version = ['py310']
extend-exclude = '''
/(
# directories
__pycache__
| \.venv
| venv
| build
| dist
| \.git
| \.pytest_cache
| \.mypy_cache
| allure-results
| screenshots
| reports
)/
'''
[tool.isort]
profile = "black"
line_length = 100
skip_gitignore = true
known_first_party = ["pages", "helpers", "utils"]
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
[tool.pytest.ini_options]
# Already configured in pytest.ini, but can be referenced here
asyncio_mode = "auto"
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = false
ignore_missing_imports = true
exclude = [
"tests",
"__pycache__",
".venv",
"venv",
"build",
"dist"
]
[tool.bandit]
exclude_dirs = ["tests", "__pycache__", ".venv", "venv"]
skips = ["B101", "B601"] # Skip assert_used and shell_command checks in tests
[tool.coverage.run]
source = ["pages", "helpers", "utils"]
omit = [
"*/tests/*",
"*/__pycache__/*",
"*/.venv/*",
"*/venv/*",
"conftest.py"
]
[tool.coverage.report]
precision = 2
show_missing = true
skip_covered = false
[build-system]
requires = ["setuptools>=45", "wheel"]
build-backend = "setuptools.build_meta"