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