Files
python-encrypt-code/pyproject.toml
T
Brian Bjarke Jensen 736e51dc14
Python Code Quality / python-code-quality (pull_request) Successful in 11s
Python Test / python-test (pull_request) Successful in 12s
added pypi publish functionality
2026-01-08 13:43:21 +01:00

67 lines
2.1 KiB
TOML

[project]
name = "python-encrypt-code"
version = "0.1.0"
description = "Python-based command line tool to encrypt and decrypt Python modules."
authors = [
{ name = "Brian Bjarke Jensen", email = "[email protected]" }
]
readme = "README.md"
requires-python = ">=3.12"
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
]
license = "MIT"
license-files = ["LICENSE"]
dependencies = [
"cryptography>=46.0.3",
]
[project.urls]
source = "https://gitea.gt-proj.com/brian/python-encrypt-code"
[project.scripts]
python-encrypt-code = "python_encrypt_code.__main__:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/python_encrypt_code"]
[dependency-groups]
dev = [
"mypy>=1.19.1",
"pre-commit>=4.5.1",
"pytest>=9.0.2",
"pytest-cov>=7.0.0",
"pyupgrade>=3.21.2",
"ruff>=0.14.9",
"testcontainers>=4.13.3",
]
[tool.mypy]
python_version = "3.12"
mypy_path = "src" # tell mypy where to find the source code
ignore_missing_imports = false # do not ignore missing imports
strict = true # enable all strictness options
warn_return_any = true # nudge to use stricter types
warn_unused_configs = true # nudge to remove unused configs
disallow_untyped_defs = true # disallow untyped function definitions
disallow_incomplete_defs = true # ensure all parts of a function has type annotation
check_untyped_defs = true # dont skip untyped functions
disallow_untyped_decorators = false # allow untyped decorators to keep code more readable
no_implicit_optional = true # disallow implicit optional types leading to None-mess
warn_redundant_casts = true # nudge to use explicit type casts
warn_unused_ignores = true # nudge to remove unused ignores
warn_no_return = true # catch missing return statements
warn_unreachable = true # catch unreachable code
show_error_codes = true # show error codes in output
explicit_package_bases = true # reduce risk of import confusion
namespace_packages = true # enable namespace packages
[[tool.mypy.overrides]]
module = "testcontainers.*"
ignore_missing_imports = true