-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
126 lines (108 loc) · 3.08 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
[tool.poetry]
name = "ado_wrapper"
description = "A high level wrapper around the AzureDevops API including OOP principals and state management"
authors = ["Ben Skerritt"]
version = "1.38.0"
license = "Proprietary"
readme = "README.md"
packages = [{include = "ado_wrapper"}]
[tool.poetry.scripts]
ado_wrapper = "ado_wrapper.__main__:main"
[tool.poetry.dependencies]
python = "^3.10"
requests = "2.31.0"
pyyaml = "6.0.1"
[tool.poetry.group.dev.dependencies]
black = "^23.1.0"
pylint = "^2.17.5"
pytest = "^7.4.0"
coverage = "^7.4.4"
[[tool.poetry.source]]
name = "PyPI"
priority = "primary"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.mypy]
plugins = ["pydantic.mypy"]
exclude = [".vscode", ".pytest_cache", ".mypy_cache", ".git", "__pycache__", "script.py", "dev_testing.py"]
strict = true
[tool.pylint.main]
ignore = [".vscode", ".pytest_cache", ".mypy_cache", ".git", "__pycache__", "script.py", "dev_testing.py"]
recursive = true
[tool.pylint.messages_control]
max-line-length = 140
disable = [
"missing-module-docstring",
"missing-class-docstring",
"missing-function-docstring",
"missing-timeout",
"too-few-public-methods",
"too-many-instance-attributes",
"too-many-arguments",
"wrong-import-position",
"duplicate-code",
"unused-argument",
"fixme",
"arguments-differ",
"arguments-renamed",
"invalid-name",
"too-many-locals",
"line-too-long",
"broad-exception-caught",
"import-outside-toplevel",
"attribute-defined-outside-init",
"cyclic-import",
"redefined-outer-name",
"abstract-method",
"pointless-statement",
"inconsistent-return-statements",
]
[tool.pytest.ini_options]
testpaths = ["tests", ]
log_cli = true
markers = [
"wip: mark test as a work in progress",
"from_request_payload: mark test which convert payloads to resources",
"update: Tests which are used to update the API",
"create_delete: Tests which are used to create and delete resources",
"get_by_id: Tests which are used to get resources by their ID",
"get_all: Tests which are used to get all resources",
"get_all_by_name: Tests which are used to get resources by their name",
"get_contents: Tests which get the contents of things, e.g. variable group variables",
"integrations: Tests which are used to test full integrations of multiple resources",
"hierarchy: Tests which use unofficial hierarchy calls",
]
[tool.black]
line_length = 140
[tool.isort]
profile = "black"
[tool.coverage.run]
omit = [
"__pycache__/*",
".mypy_cache/*",
".pytest_cache/*",
".ruff_cache/*",
".vscode/*",
"ado_wrapper_logs/*",
"dist/*",
"htmlcov/*",
"tests/*",
"/opt/*",
]
[tool.bandit]
skips = ["B101", "B105", "B106", "B107"] # SQL Injection, assert x3
[tool.ruff]
line-length = 140
[tool.ruff.format]
quote-style = "double"
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # Pyflakes
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"I", # isort
]
ignore = ["F401", "F403", "E501", "I001", "SIM105", "SIM118"]