Files
issue-core/pyproject.toml

176 lines
4.0 KiB
TOML

[build-system]
requires = ["setuptools>=61,<77", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "issue-core"
description = "Authoritative task lifecycle manager for the Coulomb org — backend-agnostic with plugin architecture"
readme = "README.md"
requires-python = ">=3.8"
license = {text = "MIT"}
authors = [
{name = "MarkiTect Project", email = "noreply@example.com"},
]
keywords = ["issue-tracking", "project-management", "cli", "gitea", "github", "jira"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Bug Tracking",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Utilities",
]
dependencies = [
"click>=8.0.0",
"requests>=2.25.0",
"python-dateutil>=2.8.0",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"build>=1.3",
"pytest>=6.0",
"pytest-cov>=2.0",
"pytest-mock>=3.0",
"twine>=6.0",
"black>=22.0",
"isort>=5.0",
"flake8>=4.0",
"mypy>=0.900",
"pre-commit>=2.0",
"httpx>=0.27",
"fastapi>=0.110,<1.0",
"pydantic>=2.0,<3.0",
]
docs = [
"sphinx>=4.0",
"sphinx-rtd-theme>=1.0",
"sphinx-click>=3.0",
]
gitea = [
"requests>=2.25.0",
]
github = [
"pygithub>=1.55",
]
jira = [
"jira>=3.0",
]
api = [
"fastapi>=0.110,<1.0",
"uvicorn[standard]>=0.27,<1.0",
"pydantic>=2.0,<3.0",
]
[project.urls]
Homepage = "https://github.com/coulomb/issue-core"
Documentation = "https://issue-core.readthedocs.io/"
Repository = "https://github.com/coulomb/issue-core.git"
"Bug Tracker" = "https://github.com/coulomb/issue-core/issues"
[project.scripts]
issue = "issue_core.cli.main:main"
issue-core = "issue_core.cli.main:main"
issue-tracker = "issue_core.cli.legacy:issue_tracker_hint"
[tool.setuptools.packages.find]
include = ["issue_core*"]
[tool.setuptools.dynamic]
version = {attr = "issue_core.__version__"}
[tool.setuptools.package-data]
issue_core = ["backends/local/schema.sql"]
[tool.black]
line-length = 100
target-version = ['py38']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.isort]
profile = "black"
line_length = 100
known_first_party = ["issue_core"]
[tool.mypy]
python_version = "3.8"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_no_return = true
warn_unreachable = true
strict_equality = true
[[tool.mypy.overrides]]
module = [
"requests.*",
"click.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py", "*_test.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--strict-markers",
"--disable-warnings",
"--tb=short",
]
markers = [
"unit: Unit tests",
"integration: Integration tests",
"slow: Slow tests",
]
[tool.coverage.run]
source = ["issue_core"]
omit = [
"*/tests/*",
"*/test_*",
"setup.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]