-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathpyproject.toml
More file actions
139 lines (122 loc) · 3.61 KB
/
pyproject.toml
File metadata and controls
139 lines (122 loc) · 3.61 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
[build-system]
requires = [ "setuptools>=41.0.1",]
build-backend = "setuptools.build_meta"
[tool.mypy]
ignore_missing_imports = true
ignore_errors = true
[tool.xcookie]
tags = [ "purepy", "erotemic", "github",]
mod_name = "ubelt"
repo_name = "ubelt"
rel_mod_parent_dpath = "."
os = ["all"]
min_python = '3.8'
author = "Jon Crall"
typed = "partial"
use_uv = true
author_email = "erotemic@gmail.com"
description = "A Python utility belt containing simple tools, a stdlib like feel, and extra batteries"
#ci_cpython_versions=["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13.0-beta.2"]
license = "Apache 2"
dev_status = "stable"
classifiers = [
# List of classifiers available at:
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Utilities',
'Operating System :: Microsoft :: Windows',
'Operating System :: MacOS',
'Operating System :: POSIX :: Linux',
'Typing :: Stubs Only',
]
[tool.xcookie.setuptools]
keywords = ["utility", "python", "hashing", "caching", "stdlib", "path", "pathlib", "dictionary", "download"]
[tool.pytest.ini_options]
addopts = "-p no:doctest --xdoctest --xdoctest-style=google --ignore-glob=setup.py --ignore-glob=docs --ignore-glob=htmlcov"
norecursedirs = ".git ignore build __pycache__ dev _skbuild docs htmlcov"
filterwarnings = [
"default",
"ignore:.*No cfgstr given in Cacher constructor or call.*:Warning",
"ignore:.*Define the __nice__ method for.*:Warning",
"ignore:.*private pytest class or function.*:Warning",
]
[tool.coverage.run]
branch = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
".* # pragma: no cover",
".* # nocover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if trace is not None",
"verbose = .*",
"^ *raise",
"^ *pass *$",
"if _debug:",
"if __name__ == .__main__.:",
".*if six.PY2:",
".*if typing.TYPE_CHECKING:",
".*if TYPE_CHECKING:",
"@typing.overload",
"@overload",
]
omit = [
"ubelt/__main__.py",
"ubelt/_win32_links.py",
"ubelt/_win32_jaraco.py",
"*/setup.py",
]
[tool.codespell]
skip = ['./docs/build', './*.egg-info', './build', './htmlcov']
count = true
quiet-level = 3
ignore-words-list = ['wont', 'cant', 'ANS', 'doesnt', 'arent', 'ans', 'thats', 'datas', 'isnt']
[tool.ty.src]
exclude = [
#'ubelt/util_path.py',
#'ubelt/util_stream.py'
]
[[tool.ty.overrides]]
# Apply the ignore unresolved rules to these files
include = [
"ubelt/__main__.py",
"ubelt/util_time.py",
"ubelt/util_repr.py",
"ubelt/util_hash.py",
"ubelt/util_colors.py",
"ubelt/util_indexable.py",
"ubelt/util_deprecate.py",
]
rules = { unresolved-import = "ignore" }
# TODO: eventually fix these errors
[[tool.ty.overrides]]
include = ["ubelt/util_cmd.py"]
[tool.ty.overrides.rules]
deprecated = "ignore"
# TODO: Think about if we can fix copy and move signatures.
[[tool.ty.overrides]]
include = ["ubelt/util_path.py"]
[tool.ty.overrides.rules]
invalid-method-override = "ignore"
[tool.ruff]
line-length = 80
target-version = "py38"
[tool.ruff.lint]
# Enable Flake8 (E, F) and isort (I) rules.
select = ["E", "F", "I"]
# Ignore specific rules, for example, E501 (line too long) as it's handled by the formatter.
ignore = [
"E501", # line too long
"E402", # Module level import not at top of file
]
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = false