Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
97 lines (86 loc) · 2.73 KB
/
Copy pathpyproject.toml
File metadata and controls
97 lines (86 loc) · 2.73 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
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
[tool.poetry]
name = "leverage"
version = "0.0.0"
description = "Binbash Leverage Command-Line tool."
authors = ["BinBash Inc <[email protected]>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/binbashar/leverage"
repository = "https://github.com/binbashar/leverage"
documentation = "https://leverage.binbash.co/"
keywords = ["leverage", "binbash"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15"
]
packages = [
{ include = "leverage" },
{ include = "leverage/modules" },
]
[tool.poetry.dependencies]
# No cap on the minor version: with one, pip installs an old release that had none on every new Python (#341).
# CI tests the versions in tests-unit.yml. The <4.0 is required by simple-term-menu.
python = ">=3.11,<4.0"
click = "8.5.1"
yaenv = "1.6.5"
"ruamel.yaml" = "0.19.1"
jinja2 = "3.1.6"
questionary = "2.1.1"
prompt-toolkit = "3.0.53"
python-hcl2 = "7.3.1"
boto3 = "1.44.3"
configupdater = "4.1.1"
docutils = "0.23"
rich = "14.1.0"
requests = "2.34.2"
simple-term-menu = "1.6.6"
python-dateutil = "^2.9.0.post0"
[tool.poetry.group.dev.dependencies]
pytest = "9.2.0"
pytest-cov = "6.0.0"
twine = "6.1.0"
black = "26.10.1"
ruff = "0.17.5"
mypy = "1.19.1"
types-python-dateutil = "^2.9.0"
pre-commit = "3.5.0"
pytest-mock = "^3.15.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
leverage = "leverage:leverage"
[tool.black]
line-length = 120
extend-exclude = """
simple_build_bad_syntax.py
"""
[tool.mypy]
# Gradual typing: checks the annotated code only. Tighten module by module (e.g. check_untyped_defs).
python_version = "3.11"
files = ["leverage"]
warn_unused_ignores = true
warn_redundant_casts = true
[[tool.mypy.overrides]]
# No type information published for these
module = ["boto3", "botocore.*", "simple_term_menu"]
ignore_missing_imports = true
[tool.ruff]
line-length = 120
target-version = "py311"
# Deliberately broken: tests/test_tasks.py checks how a build script with a syntax error is reported
extend-exclude = ["tests/build_scripts/simple_build_bad_syntax.py"]
[tool.ruff.lint]
# pyflakes (F) and the pycodestyle errors (E4, E7, E9): mistakes, not style. black owns the formatting.
select = ["E4", "E7", "E9", "F"]
[tool.ruff.lint.per-file-ignores]
# The package's public names, imported to be re-exported
"leverage/__init__.py" = ["F401"]
"leverage/modules/__init__.py" = ["F401"]