-
Notifications
You must be signed in to change notification settings - Fork 10
/
pyproject.toml
97 lines (84 loc) · 2.31 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
[build-system]
requires = ["hatchling", "hatch-regex-commit"]
build-backend = "hatchling.build"
[project]
name = "atpbar"
dynamic = ["version"]
description = "Progress bars for threading and multiprocessing tasks"
readme = "README.md"
requires-python = ">=3.9"
license = ""
authors = [{ name = "Tai Sakuma", email = "tai.sakuma@gmail.com" }]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
dependencies = ["typing_extensions>=4.12; python_version < '3.10'"]
[project.optional-dependencies]
jupyter = ["ipywidgets>=8.1"]
tests = [
"pytest-console-scripts>=1.4",
"pytest-cov>=5.0",
"pytest>=8.2",
"hypothesis>=6.102.6",
]
doc = ["mkdocs-material>=9.5", "pymdown-extensions>=10.8"]
[project.urls]
Homepage = "https://github.com/alphatwirl/atpbar"
[tool.hatch.version]
source = "regex_commit"
path = "atpbar/__about__.py"
tag_sign = false
[tool.hatch.build.targets.sdist]
include = ["/atpbar"]
[tool.pytest.ini_options]
addopts = """
--doctest-modules
--doctest-glob='*.md'
--ignore=examples/
--ignore=atpbar/presentation/
"""
# doctest_optionflags = ["ELLIPSIS", "NORMALIZE_WHITESPACE",]
doctest_optionflags = ["ELLIPSIS"]
[tool.ruff]
line-length = 88
[tool.ruff.format]
quote-style = "preserve"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
]
ignore = [
"E203", # Whitespace before '{symbol}'
"E265", # Block comment should start with #
"E266", # Too many leading # before block comment
"E501", # Line too long ({width} > {limit})
"E741", # Ambiguous variable name '{name}'
]
[tool.ruff.lint.mccabe]
max-complexity = 20
[tool.ruff.lint.isort]
#
[tool.coverage.run]
branch = true
source = ["atpbar", "tests"]
concurrency = ["multiprocessing"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
'if __name__ == "__main__":',
"if TYPE_CHECKING:",
]
[[tool.mypy.overrides]]
module = ["ipywidgets"]
ignore_missing_imports = true