-
Notifications
You must be signed in to change notification settings - Fork 225
Expand file tree
/
Copy pathpyproject.toml
More file actions
143 lines (126 loc) · 4.64 KB
/
pyproject.toml
File metadata and controls
143 lines (126 loc) · 4.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
[project]
name = "bugwarrior"
version = "2.1.0.post"
description = "a command line utility for updating your local taskwarrior database from your forge issue trackers"
readme = "bugwarrior/README.rst"
requires-python = ">=3.10"
license = "GPL-3.0-or-later"
license-files = ["LICENSE.txt"]
keywords=["task", "taskwarrior", "todo", "github"]
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Bug Tracking",
"Topic :: Utilities",
]
dependencies = [
"click",
"dogpile.cache>=0.5.3",
"jinja2>=2.7.2",
"lockfile>=0.9.1",
"pydantic[email]>=2",
"python-dateutil",
"requests>=1",
# Needed at runtime: phabricator and ini2toml import pkg_resources,
# which is no longer bundled in venvs since Python 3.12 (see #1150).
"setuptools",
"taskw>=0.8",
"tomli ; python_version <= '3.10'",
]
[project.optional-dependencies]
bts = ["python-debianbts>=4.1.1"]
bugzilla = ["python-bugzilla>=2.0.0"]
gmail = ["google-api-python-client", "google-auth-oauthlib"]
ini2toml = ["ini2toml[full]"]
jira = ["jira>=3.10.0"]
kanboard = ["kanboard"]
keyring = ["keyring"]
phabricator = ["phabricator"]
todoist = ["todoist_api_python>=3.0.0"]
trac = ["offtrac"]
all = ["bugwarrior[bts,bugzilla,gmail,ini2toml,jira,kanboard,keyring,phabricator,todoist,trac]"]
[project.urls]
documentation = "https://bugwarrior.readthedocs.io/en/stable/"
repository = "https://github.com/GothenburgBitFactory/bugwarrior"
[project.scripts]
bugwarrior = "bugwarrior:cli"
bugwarrior-pull = "bugwarrior:pull"
bugwarrior-vault = "bugwarrior:vault"
bugwarrior-uda = "bugwarrior:uda"
[project.entry-points."bugwarrior.service"]
azuredevops = "bugwarrior.services.azuredevops:AzureDevopsService"
deck = "bugwarrior.services.deck:NextcloudDeckService"
gitbug = "bugwarrior.services.gitbug:GitBugService"
github = "bugwarrior.services.github:GithubService"
gitlab = "bugwarrior.services.gitlab:GitlabService"
bitbucket = "bugwarrior.services.bitbucket:BitbucketService"
trac = "bugwarrior.services.trac:TracService"
bts = "bugwarrior.services.bts:BTSService"
bugzilla = "bugwarrior.services.bz:BugzillaService"
kanboard = "bugwarrior.services.kanboard:KanboardService"
redmine = "bugwarrior.services.redmine:RedMineService"
jira = "bugwarrior.services.jira:JiraService"
phabricator = "bugwarrior.services.phab:PhabricatorService"
pagure = "bugwarrior.services.pagure:PagureService"
taiga = "bugwarrior.services.taiga:TaigaService"
gerrit = "bugwarrior.services.gerrit:GerritService"
trello = "bugwarrior.services.trello:TrelloService"
youtrack = "bugwarrior.services.youtrack:YoutrackService"
gmail = "bugwarrior.services.gmail:GmailService"
teamwork_projects = "bugwarrior.services.teamwork_projects:TeamworkService"
pivotaltracker = "bugwarrior.services.pivotaltracker:PivotalTrackerService"
linear = "bugwarrior.services.linear:LinearService"
logseq = "bugwarrior.services.logseq:LogseqService"
todoist = "bugwarrior.services.todoist:TodoistService"
clickup = "bugwarrior.services.clickup:ClickupService"
[project.entry-points."ini2toml.processing"]
bugwarrior = "bugwarrior.config.ini2toml_plugin:activate"
[tool.ruff.format]
quote-style = "preserve"
skip-magic-trailing-comma = true
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "W", "I", "E501", "ANN"]
ignore = ["ANN401"]
# ANN rules (flake8-annotations) detect untyped code — useful for gradual typing.
# Enforced in application code under bugwarrior/ (excluding tests/ and bugwarrior/docs/).
# ANN401 (disallow Any) is too strict for wrappers, *args/**kwargs, and data storage.
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["ANN"]
"bugwarrior/docs/**" = ["ANN"]
[tool.ruff.lint.flake8-annotations]
suppress-dummy-args = true
[tool.ruff.lint.isort]
combine-as-imports = true
force-sort-within-sections = true
split-on-trailing-comma = false
[tool.ruff.lint.pycodestyle]
max-line-length = 100
[tool.setuptools.packages.find]
include = ["bugwarrior*"]
[tool.ty.environment]
python-version = "3.13"
[tool.ty.src]
exclude = ["tests/", "bugwarrior/docs/"]
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
# PEP 735 — Dependency Groups in pyproject.toml
# https://peps.python.org/pep-0735/
[dependency-groups]
docs = [
# sphinx-inline-tabs is incompatible with docutils-0.22 https://github.com/pradyunsg/sphinx-inline-tabs/pull/51
"docutils<0.22",
"sphinx>=1.0,<9.0 ; python_version <= '3.10'",
"sphinx>=9.0.3 ; python_version >= '3.11'",
"sphinx-click",
"sphinx-inline-tabs",
]
test = [
{include-group = "docs"},
"pytest>=9",
"responses",
# ruff and ty are required by tests/test_general.py
"ruff",
"ty==0.0.32",
]