-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpyproject.toml
More file actions
136 lines (121 loc) · 3.57 KB
/
Copy pathpyproject.toml
File metadata and controls
136 lines (121 loc) · 3.57 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "undate"
description = "library for working with uncertain, fuzzy, or partially unknown dates and date intervals"
readme = "README.md"
license = { text = "Apache-2.0" }
requires-python = ">= 3.10"
dynamic = ["version"]
dependencies = [
"lark[interegular]",
"numpy",
"convertdate>=2.4,<2.4.1", # changes syntax, deprecation warning
"strenum; python_version < '3.11'",
]
authors = [
{ name = "Rebecca Sutton Koeser" },
{ name = "Cole Crawford" },
{ name = "Julia Damerow" },
{ name = "Robert Casties" },
{ name = "Malte Vogl" },
]
# currently no maintainers separate from authors
keywords = [
"dates",
"dating",
"uncertainty",
"uncertain-dates",
"unknown",
"partially-known",
"digital-humanities",
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering",
"Topic :: Utilities",
"Typing :: Typed",
]
[dependency-groups]
docs = [
"sphinx>=8.0.0",
"furo",
"myst-parser",
"myst-parser[linkify]",
"sphinx-pyodide",
]
test = ["pytest>=9", "pytest-ordering", "pytest-cov"]
notebooks = ["jupyterlab", "pandas", "treon", "altair"]
check = [ { include-group = "docs" }, {include-group = "notebooks"}, "mypy", "ruff"]
dev = [
"pre-commit>=2.20.0",
"twine",
"wheel",
"build",
"sphinx-autobuild>=2024.10.3",
{ include-group = "test" },
{ include-group = "check" },
{ include-group = "docs" },
]
[project.urls]
Homepage = "https://github.com/dh-tech/undate-python"
Documentation = "https://undate-python.readthedocs.io/en/latest/"
Repository = "https://github.com/dh-tech/undate-python.git"
Issues = "https://github.com/dh-tech/undate-python/issues"
Changelog = "https://github.com/dh-tech/undate-python/blob/main/CHANGELOG.md"
[tool.hatch.version]
path = "src/undate/__init__.py"
[tool.hatch.build.targets.sdist]
include = ["src/undate/**/*.py", "src/undate/**/*.lark", "tests/**"]
[tool.hatch.envs.codegen]
dependencies = ["babel"]
[tool.hatch.envs.codegen.scripts]
generate = "python scripts/generate_gregorian_grammar.py"
[tool.pytest]
minversion = "9"
log_level = "INFO"
strict = true
addopts = ["-ra"]
filterwarnings = ["error"]
pythonpath = [ "src/" ]
testpaths = [
"tests",
]
markers = [
"last : run marked tests after all others",
"first : run marked tests before all others",
]
[tool.mypy]
plugins = ["numpy.typing.mypy_plugin"]
[tool.ruff.lint]
# Include these rules in addition to ruff's defaults
extend-select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"I", #isort
"NPY", # numpy-specific rules
"PERF", # perflint
"PTH", # flake8-use-pathlib
"RUF", # ruff-specific rules
"SIM", # flake8-simplify
"UP", # pyupgrade
]
# Can use to ignore specific rules within above selection
ignore = []
[tool.ruff.lint.per-file-ignores]
# for test files, don't require docstrings or return type annotations
"tests/**.py" = ["D", "ANN", "RUF"]
# uncomment for local development of sphinx-pyodide
#[tool.uv.sources]
#sphinx-pyodide = { path = "../sphinx-pyodide", editable = true }