-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpyproject.toml
111 lines (97 loc) · 2.64 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
[tool.poetry]
name = "bitbucket-pipeline-runner"
version = "0.4.10"
description = "Run a bitbucket pipeline locally"
authors = ["Mathieu Lemay <[email protected]>"]
license = "MIT"
readme = "README.md"
repository = "https://github.com/mathieu-lemay/pipeline-runner"
packages = [
{include = "pipeline_runner"}
]
[tool.poetry.dependencies]
python = "^3.10"
PyYAML = "^6.0"
docker = "^7.0.0"
click = "^8.0.1"
python-slugify = "^8.0.0"
boto3 = "^1.34.64"
GitPython = "^3.1.12"
python-dotenv = "^1.0.0"
requests = "^2.31.0"
coloredlogs = "^15.0"
pyfzf = "^0.3.0"
pydantic = "^2.0"
pydantic-settings = "^2.0.3"
cryptography = "^43.0.0"
tenacity = "^9.0.0"
platformdirs = "^4.3.6"
[tool.poetry.group.dev.dependencies]
pytest = "^8.0.0"
pytest-mock = "^3.5.1"
coverage = { version = "^7.0.1", extras = ["toml"] }
mypy = "^1.4.0"
types-setuptools = "^75.1.0.20240917"
types-pyyaml = "^6.0.12.10"
types-python-slugify = "^8.0.0.2"
types-boto3 = "^1.0.2"
faker = "^33.0.0"
pytest-cov = "^6.0.0"
[tool.poetry.scripts]
pipeline-runner = 'pipeline_runner.cli:main'
[tool.mypy]
namespace_packages=true
explicit_package_bases=true
strict=true
show_error_codes=true
plugins=["pydantic.mypy"]
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
warn_untyped_fields = true
[tool.ruff]
target-version = "py310"
exclude = [".venv"]
line-length = 120
[tool.ruff.lint]
select = [
"ALL"
]
ignore = [
"COM", # flake8-commas
"D", # pydocstyle
"DTZ", # flake8-datetimez
"FIX", # flake8-fixme
"PTH", # flake8-use-pathlib
"TD", # flake8-todos
"EM101", # Exception must not use a string literal, assign to variable first
"EM102", # Exception must not use an f-string literal, assign to variable first
"PLR0913", # Too many arguments to function call
"TRY002", # Create your own exception
"TRY003", # Avoid specifying long messages outside the exception class
]
[tool.ruff.lint.pep8-naming]
classmethod-decorators = [
"classmethod",
"pydantic.validator",
"pydantic.field_validator",
"pydantic.model_validator",
"pydantic.root_validator"
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = [
"FBT001", # Boolean-typed positional argument in function definition
"PLR2004", # Magic value used in comparison
"S101", # Use of `assert` detected
"S105", # Possible hardcoded password
]
[tool.pytest.ini_options]
testpaths = ["tests/unit", "tests/integration", "tests"]
[tool.coverage.run]
branch = true
[tool.coverage.report]
exclude_lines = ["pragma: no cover", "raise NotImplementedError"]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"