-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
146 lines (131 loc) · 3.13 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "plexosdb"
version = "0.0.7"
readme = "README.md"
license = {file = "LICENSE.txt"}
keywords = []
authors = [
{ name = "Pedro Andres Sanchez Perez", email = "[email protected]" },
{ name = "Kodi Obika", email = "[email protected]" },
]
maintainers = [
{ name = "Pedro Andres Sanchez Perez", email = "[email protected]" },
{ name = "Kodi Obika", email = "[email protected]" },
]
description = "SQLite API for plexos XMLs"
dependencies = [
"loguru~=0.7.2",
]
requires-python = ">= 3.11"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Topic :: Software Development :: Build Tools",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
[project.urls]
Documentation = "https://github.com/NREL/plexosdb#readme"
Issues = "https://github.com/NREL/plexosdb/issues"
Source = "https://github.com/NREL/plexosdb"
Changelog = "https://github.com/NREL/plexosdb/blob/master/CHANGELOG.md"
[project.optional-dependencies]
all = ["plexosdb[docs,dev]"]
docs = [
"sphinx-book-theme",
"ghp-import",
"myst-parser",
"sphinx-copybutton",
"sphinx-tabs",
"sphinxcontrib-mermaid",
]
dev = [
"bump2version",
"ipython",
"pudb",
"mypy~=1.11.0",
"pre-commit",
"pytest",
"pytest-cov",
"ruff~=0.5.2",
]
[tool.setuptools]
include-package-data = true
[tool.setuptools.package-data]
"*" = ["*.json", "*.csv", "*.xml", ".sql"]
[tool.setuptools.packages.find]
where = ["src"]
# Setuptools configuration
[tool.setuptools.dynamic]
readme = { file = ["README.md"], content-type = "text/markdown" }
[tool.ruff]
line-length = 110
target-version = "py311"
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"site-packages",
"venv",
]
[tool.ruff.lint]
select = [
"E", # pycodestyle
"TD", # flake-8 todos
"RUF", # Ruff rules
"N", # pep8
"F", # pyflakes
"UP", # pyupgrade
"D", # pydocstyle
"C90", # Complex code
]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
extend-ignore = ['D105', 'D107', 'D205', 'D415']
pydocstyle.convention = "numpy"
[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", "F403", "D104"]
"**/{tests,docs,tools}/*" = ["D100", "D103", "E402"]
[tool.pytest.ini_options]
pythonpath = [
"src"
]
markers = [
"get_functions: Functions that get data",
"add_functions: Functions that add data",
"empty_database: Functions for test empty database"
]
[tool.coverage.run]
omit = [
"tests/*",
]