-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
116 lines (102 loc) · 3.34 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
[build-system]
requires = ["setuptools >= 70.2"]
build-backend = "setuptools.build_meta"
[project]
name = "ash-williams"
authors = [{ name = "Matt VanEseltine", email = "[email protected]" }]
description = "Hunting Deadites in the references"
dynamic = ["dependencies", "readme"]
version = "0.9.2"
requires-python = ">=3.10" # PEP 604 allowed writing union types as X | Y in 3.10+
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)",
"Natural Language :: English",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Information Analysis",
"Typing :: Typed",
]
keywords = [
"bibliography",
"citation",
"doi",
"publications",
"references",
"retraction",
"science",
]
license = { file = "LICENSE" }
[project.scripts]
ash = "ash:ash_cli"
[project.urls]
Homepage = "https://github.com/vaneseltine/ash-williams"
Repository = "https://github.com/vaneseltine/ash-williams"
Issues = "https://github.com/vaneseltine/ash-williams/issues"
[tool.coverage.run]
omit = ["*/__*.py"]
branch = true
[tool.coverage.report]
exclude_also = [
"def __repr__",
"if __name__ == .__main__.:",
"if T.TYPE_CHECKING",
"raise NotImplementedError",
]
[tool.coverage.html]
directory = "build/coverage"
[tool.isort]
profile = "black"
[tool.pylint.miscellaneous]
notes = ["FIXME", "XXX", "TODO"]
[tool.pylint."messages control"]
disable = [
"line-too-long", # handled by black
"too-few-public-methods", # no, using classes as plugins currently
"too-many-instance-attributes", # wat
"too-many-arguments", # go away
"too-many-locals", # no u
"fixme", # covered elsewhere
"logging-fstring-interpolation", # WRONG
"missing-docstring", # yes yes
"empty-docstring", # yes yes yes
"too-many-lines", # leav eme alone
]
[tool.pylint.reports]
output-format = "colorized"
[tool.pyright]
ignore = ["**/_*", "test/*"]
pythonPlatform = "All"
typeCheckingMode = "strict"
deprecateTypingAliases = true
reportCallInDefaultInitializer = true
# reportImplicitOverride = true
reportImplicitStringConcatenation = true
reportImportCycles = true
# reportMissingSuperCall = true # excessive for me
reportPropertyTypeMismatch = true
reportShadowedImports = true
reportUninitializedInstanceVariable = true
reportUnnecessaryTypeIgnoreComment = false # sometimes disagrees with vscode builtin
reportUnusedCallResult = true
[tool.pytest.ini_options]
addopts = "--disable-socket"
filterwarnings = "ignore::DeprecationWarning"
log_cli = "False"
log_cli_level = "DEBUG"
python_files = ["test_*.py"]
python_functions = ["t_*", "test_*", "issue*"]
testpaths = ["test"]
[tool.setuptools]
packages = ["ash"]
[tool.setuptools.dynamic]
readme = { file = ["README.md"], content-type = "text/markdown" }
dependencies = { file = ["requirements.txt"] }