-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpyproject.toml
More file actions
140 lines (125 loc) · 3.08 KB
/
pyproject.toml
File metadata and controls
140 lines (125 loc) · 3.08 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
140
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "chronify"
version = "0.7.0"
description = "Time series store and mapping libray"
readme = "README.md"
requires-python = ">=3.11, <3.14"
license = "BSD-3-Clause"
keywords = []
authors = [
{ name = "Daniel Thom", email = "daniel.thom@nrel.gov" },
{ name = "Elaine Hale", email = "elaine.hale@nrel.gov" },
{ name = "Lixi Liu", email = "lixi.liu@nrel.gov" },
{ name = "Pedro Andres Sanchez Perez", email = "pedroandres.sanchezperez@nrel.gov" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"duckdb ~= 1.1.0",
"duckdb_engine",
"loguru",
"pandas >= 2.2, < 3",
"pyarrow",
"pydantic >= 2.7, < 3",
"pytz",
"rich",
"sqlalchemy == 2.0.37",
"tzdata",
# Required by pyhive
"future",
"python-dateutil",
]
[project.optional-dependencies]
spark = [
"thrift",
"thrift_sasl",
]
dev = [
"mypy >= 1.15, < 2",
"pandas-stubs",
"pre-commit",
"pytest",
"pytest-cov",
"ruff",
"furo",
"myst_parser",
"sphinx",
"sphinx-click",
"autodoc_pydantic~=2.0",
"sphinx-copybutton",
"sphinx-tabs~=3.4",
]
[project.entry-points."sqlalchemy.dialects"]
hive = "pyhive.sqlalchemy_hive:HiveDialect"
"hive.http" = "pyhive.sqlalchemy_hive:HiveHTTPDialect"
"hive.https" = "pyhive.sqlalchemy_hive:HiveHTTPSDialect"
[project.urls]
Documentation = "https://github.com/NREL/chronify#readme"
Issues = "https://github.com/NREL/chronify/issues"
Source = "https://github.com/NREL/chronify"
[tool.mypy]
files = [
"src",
]
exclude = [
"src/chronify/_vendor/*",
]
strict = true
[tool.pytest.ini_options]
pythonpath = "src"
minversion = "6.0"
addopts = "-ra"
testpaths = ["tests"]
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".git",
".ruff_cache",
".venv",
"_build",
"build",
"dist",
"env",
"venv",
"src/chronify/_vendor/*",
]
line-length = 99
indent-width = 4
target-version = "py311"
[tool.ruff.lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
select = [
"C901", # McCabe complexity
"E4", # Subset of pycodestyle (E)
"E7",
"E9",
"EM", # string formatting in an exception message
"F", # Pyflakes
"W", # pycodestyle warnings
]
ignore = []
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = true
docstring-code-line-length = "dynamic"
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402", "F401"]
"**/{tests,docs,tools}/*" = ["E402"]
[tool.hatch]
metadata.allow-direct-references = true