-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
94 lines (82 loc) · 2.39 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
[tool.poetry]
name = "pycsvy"
version = "0.2.2"
description = "Python reader/writer for CSV files with YAML header information."
authors = ["Diego Alonso Álvarez <[email protected]>"]
license = "BSD-3-Clause"
readme = "README.md"
repository = "https://github.com/ImperialCollegeLondon/pycsvy"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
]
packages = [{ include = "csvy" }]
[tool.poetry.dependencies]
python = "^3.9"
PyYAML = "^6.0"
pydantic = "^2.9.2"
# A list of all of the optional dependencies, which are included in the
# below `extras`. They can be opted into by apps.
numpy = { version = ">=1.24.2,<3.0.0", optional = true }
pandas = { version = "^2.0.0", optional = true }
polars = { version = "^1.8.2", optional = true }
[tool.poetry.extras]
numpy = ["numpy"]
pandas = ["pandas"]
polars = ["polars"]
[tool.poetry.group.dev.dependencies]
pytest = ">=7.2,<9.0"
pytest-cov = ">=3,<7"
pytest-mypy = "^0.9.1"
pytest-mock = "^3.7.0"
pre-commit = ">=2.18.1,<5.0.0"
numpy = ">=1.24.2,<3.0.0"
pandas = "^2.0.0"
types-PyYAML = "^6.0.7"
coverage = "^7.1.0"
polars = "^1.8.2"
ruff = ">=0.6.8,<0.9.0"
pytest-ruff = "^0.4.1"
[tool.poetry.group.docs.dependencies]
mkdocs = "^1.4.1"
mkdocstrings = { extras = ["python"], version = ">=0.19,<0.28" }
mkdocs-material = ">=8.5.7,<10.0.0"
mkdocs-gen-files = "^0.4.0"
mkdocs-literate-nav = "^0.5.0"
mkdocs-section-index = "^0.3.4"
[tool.ruff]
target-version = "py39"
lint.select = [
"D", # pydocstyle
"E", # pycodestyle
"F", # Pyflakes
"I", # isort
"UP", # pyupgrade
"RUF", # ruff
]
[tool.pycodestyle]
max-line-length = 88
convention = "google"
[tool.mypy]
ignore_missing_imports = true
check_untyped_defs = true
[tool.mypy-setup]
ignore_errors = true
[tool.pytest.ini_options]
addopts = [
"-v", "--ruff", "--ruff-format", "--mypy",
"--cov=csvy", "--cov-report=html:reports/coverage/html",
"--cov-report=xml:reports/coverage/coverage.xml",
"--doctest-modules", "--ignore=docs/"
]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"