blob: 5661abfd5c815704144f6614185f5d71ed537b5b [file] [log] [blame]
Harrison Mutai6ac31f32024-05-10 16:54:29 +00001# Poetry pyproject.toml: https://python-poetry.org/docs/pyproject/
2[build-system]
3requires = ["poetry_core>=1.0.0"]
4build-backend = "poetry.core.masonry.api"
5
6[tool.poetry]
7name = "tlc"
8version = "0.9.0"
9description = "Transfer List Compiler (TLC) is a Python-based CLI for efficiently handling transfer lists."
10authors = ["Arm Ltd <tf-a@lists.trustedfirmware.org>"]
11license = "BSD-3"
12repository = "https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git/"
13homepage = "https://trustedfirmware-a.readthedocs.io/en/latest/index.html"
14
15# Keywords description https://python-poetry.org/docs/pyproject/#keywords
16keywords = [] #! Update me
17
18# Pypi classifiers: https://pypi.org/classifiers/
19classifiers = [
20 "Development Status :: 3 - Alpha",
21 "Intended Audience :: Developers",
22 "Operating System :: OS Independent",
23 "Topic :: Software Development :: Libraries :: Python Modules",
24 "License :: OSI Approved :: BSD License",
25 "Programming Language :: Python :: 3",
26 "Programming Language :: Python :: 3.8",
27 "Programming Language :: Python :: 3.9",
28]
29
30[tool.poetry.scripts]
31# Entry points for the package https://python-poetry.org/docs/pyproject/#scripts
32"tlc" = "tlc.__main__:cli"
33
34[tool.poetry.dependencies]
35python = "^3.8"
36
37typer = {extras = ["all"], version = "^0.4.0"}
38rich = "^10.14.0"
39click = "^8.1.7"
Charlie Bareham31120992024-06-17 11:58:03 +010040pyyaml = "^6.0.1"
Harrison Mutai6ac31f32024-05-10 16:54:29 +000041
42[tool.poetry.dev-dependencies]
43bandit = "^1.7.1"
44darglint = "^1.8.1"
45black = "^24.4.2"
46isort = {extras = ["colors"], version = "^5.10.1"}
47mypy = "^0.910"
48mypy-extensions = "^0.4.3"
49pre-commit = "^2.15.0"
50pydocstyle = "^6.1.1"
51pylint = "^2.11.1"
52pytest = "^7.0.0"
53pyupgrade = "^2.29.1"
54safety = "^2.2.0"
55coverage = "^6.1.2"
56coverage-badge = "^1.1.0"
57pytest-html = "^4.1.1"
58pytest-cov = "^3.0.0"
59
60[tool.black]
61# https://github.com/psf/black
62target-version = ["py38"]
63line-length = 88
64color = true
65
66exclude = '''
67/(
68 \.git
69 | \.hg
70 | \.mypy_cache
71 | \.tox
72 | \.venv
73 | _build
74 | buck-out
75 | build
76 | dist
77 | env
78 | venv
79)/
80'''
81
82[tool.isort]
83# https://github.com/timothycrosley/isort/
84py_version = 38
85line_length = 88
86
87known_typing = ["typing", "types", "typing_extensions", "mypy", "mypy_extensions"]
88sections = ["FUTURE", "TYPING", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
89include_trailing_comma = true
90profile = "black"
91multi_line_output = 3
92indent = 4
93color_output = true
94
95[tool.mypy]
96# https://mypy.readthedocs.io/en/latest/config_file.html#using-a-pyproject-toml-file
97python_version = 3.8
98pretty = true
99show_traceback = true
100color_output = true
101
102allow_redefinition = false
103check_untyped_defs = true
104disallow_any_generics = true
105disallow_incomplete_defs = true
106ignore_missing_imports = true
107implicit_reexport = false
108no_implicit_optional = true
109show_column_numbers = true
110show_error_codes = true
111show_error_context = true
112strict_equality = true
113strict_optional = true
114warn_no_return = true
115warn_redundant_casts = true
116warn_return_any = true
117warn_unreachable = true
118warn_unused_configs = true
119warn_unused_ignores = true
120
121
122[tool.pytest.ini_options]
123# https://docs.pytest.org/en/6.2.x/customize.html#pyproject-toml
124# Directories that are not visited by pytest collector:
125norecursedirs =["hooks", "*.egg", ".eggs", "dist", "build", "docs", ".tox", ".git", "__pycache__"]
126doctest_optionflags = ["NUMBER", "NORMALIZE_WHITESPACE", "IGNORE_EXCEPTION_DETAIL"]
127
128# Extra options:
129addopts = [
130 "--strict-markers",
131 "--tb=short",
132 "--doctest-modules",
133 "--doctest-continue-on-failure",
134]
135
136[tool.coverage.run]
137source = ["tests"]
138
139[coverage.paths]
140source = "tlc"
141
142[coverage.run]
143branch = true
144
145[coverage.report]
146fail_under = 50
147show_missing = true