-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
173 lines (157 loc) · 3.01 KB
/
pyproject.toml
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
[tool.poetry]
name = "ulauncher-toggl-extension"
version = "2.8.4"
description = "Toggl time tracker extension for Ulauncher."
authors = ["David Kasakaitis <[email protected]>"]
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
pycairo = "^1.26.1"
pygobject = "^3.48.2"
toggl-api-wrapper = "^1.3.1"
levenshtein = "^0.26.1"
[tool.poetry.group.dev.dependencies]
pytest = "^8.3.3"
pygobject-stubs = "^2.10.0"
pytest-cov = "^5.0.0"
tox-gh-actions = "^3.2.0"
ruff = "^0.5.7"
mypy = "^1.11.1"
faker = "^27.0.0"
pytest-httpx = "^0.32.0"
tomli = "^2.1.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
exclude = []
[tool.ruff.lint]
preview = true
select = [
"F",
"E",
"W",
"C90",
"I",
"N",
"UP",
"YTT",
"ASYNC",
"S",
"BLE",
"FBT",
"B",
"A",
"COM",
"C4",
"DTZ",
"T10",
"DJ",
"EM",
"EXE",
"FA",
'ISC',
"ICN",
"G",
'INP',
'PIE',
"T20",
'PYI',
'PT',
"Q",
"RSE",
"RET",
"SLF",
"SLOT",
"SIM",
"TID",
"TCH",
"INT",
"ARG",
"PTH",
"ERA",
"PD",
"PGH",
"PL",
"TRY",
"FLY",
"NPY",
"AIR",
"PERF",
"FURB",
"LOG",
"RUF",
]
ignore = ["S101", "RUF012", "SIM102", "UP007", "PLW2901"]
[tool.mypy]
ignore_missing_imports = true
disable_error_code = ["attr-defined", "assignment"]
exclude = ["tests/", "main.py", "__init__.py"]
[tool.pytest.ini_options]
markers = [
"unit: standard tests that don't access external resources.",
"integration: tests that access external apis.",
"slow: tests that include a long wait time.",
]
testpaths = ["tests"]
addopts = "--cov --cov-append --cov-report xml"
[tool.tox]
legacy_tox_ini = """
[tox]
isolated_build = True
envlist = ruff, mypy, py312, py311, py310, py313
[testenv]
skip_install = true
passenv = *
setenv =
GH_ACTION = "True"
TOGGL_WORKSPACE_ID = {env:TOGGL_WORKSPACE_ID}
TOGGL_API_TOKEN = {env:TOGGL_API_TOKEN}
PYTHONPATH = {toxinidir}
allowlist_externals = poetry
commands_pre =
poetry install
commands =
poetry run pytest {posargs}
[gh-actions]
python =
3.10: py310
3.11: py311
3.12: ruff, mypy, py312
3.13: py313
[testenv:mypy]
allowlist_externals = mypy, poetry
basepython = python3.12
commands = mypy ulauncher_toggl_extension/
[testenv:ruff]
allowlist_externals = ruff, poetry
basepython = python3.12
commands = ruff check ulauncher_toggl_extension/
"""
[tool.coverage.run]
omit = [
"*/tests/*",
"*/.venv/*",
"*/.mypy_cache/*",
"*/.ruff_cache/*",
"*/.pytest_cache/*",
"docs/*",
"scripts/*",
"*/.github/*",
"*/.tox/*",
"*/.git/*",
]
[tool.coverage.report]
exclude_also = [
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"except ImportError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]