Files
issue-core/pyproject.toml

164 lines
3.8 KiB
TOML

[build-system]
requires = ["setuptools>=45", "wheel", "setuptools-scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "universal-issue-tracker"
description = "Backend-agnostic issue tracking system 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 = [
"pytest>=6.0",
"pytest-cov>=2.0",
"pytest-mock>=3.0",
"black>=22.0",
"isort>=5.0",
"flake8>=4.0",
"mypy>=0.900",
"pre-commit>=2.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",
]
[project.urls]
Homepage = "https://github.com/markitect/universal-issue-tracker"
Documentation = "https://universal-issue-tracker.readthedocs.io/"
Repository = "https://github.com/markitect/universal-issue-tracker.git"
"Bug Tracker" = "https://github.com/markitect/universal-issue-tracker/issues"
[project.scripts]
issue = "issue_tracker.cli.main:main"
issue-tracker = "issue_tracker.cli.main:main"
[tool.setuptools]
packages = ["issue_tracker"]
[tool.setuptools.dynamic]
version = {attr = "issue_tracker.__version__"}
[tool.setuptools.package-data]
issue_tracker = ["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_tracker"]
[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_tracker"]
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",
]