forked from redhatcloudx/transformer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
102 lines (90 loc) · 2.13 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
[tool.poetry]
name = "rhelocator"
version = "0.1.0"
description = "Locate RHEL images in public clouds"
authors = [
"Felix Kolwa <[email protected]>",
"Major Hayden <[email protected]>"
]
maintainers = [
"Felix Kolwa <[email protected]>",
"Major Hayden <[email protected]>"
]
license = "Apache-2.0"
readme = "README.md"
packages = [
{include = "rhelocator", from = "src"}
]
include = [
{ path = "tests", format = "sdist" }
]
[tool.poetry.dependencies]
python = "^3.9"
boto3 = "^1.24.86"
requests = "^2.28.1"
google-cloud-compute = "^1.6.0"
click = "^8.1.3"
[tool.poetry.group.dev.dependencies]
pytest = "^7.1.3"
pytest-cov = "^4.0.0"
pytest-mock = "^3.9.0"
pytest-randomly = "^3.12.0"
pytest-xdist = {version = "^2.5.0", extras = ["psutil"]}
mypy = "^0.982"
pre-commit = "^2.20.0"
ipython = "^8.5.0"
flake8 = "^5.0.4"
pydocstyle = "^6.1.1"
yapf = "^0.32.0"
black = {version = "^22.8.0", allow-prereleases = true}
bandit = "^1.7.4"
pylint = "^2.15.3"
types-requests = "^2.28.11"
pytest-sugar = "^0.9.5"
[tool.poetry.scripts]
rhelocator-updater = "rhelocator.cli:cli"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
# Much of what is below this line is borrowed from poetry's pyproject.yaml.
# https://github.com/python-poetry/poetry/blob/master/pyproject.toml
[tool.isort]
py_version = 37
profile = "black"
force_single_line = true
combine_as_imports = true
lines_between_types = 1
lines_after_imports = 2
src_paths = ["src", "tests"]
extend_skip = ["setup.py"]
[tool.black]
target-version = ['py37']
preview = true
force-exclude = '''
.*/setup\.py$
'''
[tool.mypy]
files = "src"
mypy_path = "src"
namespace_packages = true
explicit_package_bases = true
show_error_codes = true
strict = true
ignore_missing_imports = true
enable_error_code = [
"ignore-without-code",
"redundant-expr",
"truthy-bool",
]
[tool.pytest.ini_options]
addopts = "-n auto --cov=src/rhelocator --cov-report=term-missing --cov-report=xml --cov-branch"
testpaths = [
"tests"
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:"
]
[tool.bandit.assert_used]
skips = ['*_test.py', '*/test_*.py']