-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
144 lines (129 loc) · 3.32 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
# see documentation, e.g.
# - https://packaging.python.org/en/latest/specifications/declaring-project-metadata/#declaring-project-metadata
# - https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
# - https://www.python.org/dev/peps/pep-0621/
[build-system]
requires = ["setuptools>=64.0.0", "setuptools-scm[toml]>=8", "wheel", "build"]
build-backend = "setuptools.build_meta"
[project]
name = "esdl4tulipa"
description = "ESDL to DuckDB importer to be used with Tulipa"
authors = [
{ name = "Suvayu Ali", email = "[email protected]" }
]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
keywords = [
"esdl",
"duckdb",
"tulipa",
"data import",
]
license = {file = "LICENSE"}
readme = {file = "README.md", content-type = "text/markdown"}
dynamic = ["version"]
requires-python = ">=3.10"
dependencies = [
"duckdb",
"pandas[performance]",
"pyESDL[profiles]",
"tabulate"
]
[project.optional-dependencies]
dev = [
"mypy",
"pytest",
"pytest-cov",
]
[project.urls]
Repository = "https://github.com/TulipaEnergy/esdl4tulipa"
Issues = "https://github.com/TulipaEnergy/esdl4tulipa/issues"
[tool.setuptools_scm]
version_file = "src/esdl4tulipa/_version.py"
# default: guess-next-dev, alternatives: post-release, no-guess-dev
version_scheme = "release-branch-semver"
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = ["--import-mode=importlib", "--cov=src", "-q"]
filterwarnings = ['ignore:invalid escape sequence:SyntaxWarning']
[tool.coverage.run]
omit = ["src/esdl4tulipa/_version.py"]
[tool.black]
include = '\.pyi?$'
extend-exclude ='''
(
^tests/data
)
'''
[tool.mypy]
ignore_missing_imports = true
check_untyped_defs = true
files = "src"
[tool.ruff]
respect-gitignore = true
exclude = [
".direnv",
".eggs",
".git",
".mypy_cache",
".nox",
".ruff_cache",
".tox",
".venv",
"__pypackages__",
"_build",
"build",
"dist",
"scripts",
"venv",
"tmp",
"data",
]
[tool.ruff.lint]
select = [
"F", # Pyflakes
"E", # pycodestyle (error)
"W", # pycodestyle (warning)
# "C90", # mccabe
"I", # isort
"D", # pydocstyle
# "PL", # Pylint
# "PLC", # Convention
# "PLE", # Error
# "PLR", # Refactor
# "PLW", # Warning
]
ignore = [
# 'D100', # Missing module docstring
# 'D104', # Missing public package docstring
# The following list excludes rules irrelevant to the Google style
'D203',
'D204',
'D213',
'D215',
'D400',
'D401',
'D404',
'D406',
'D407',
'D408',
'D409',
'D413',
]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["A", "B", "C", "D", "E", "F", "I"]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.isort]
known-first-party = ["esdl4tulipa"]
force-single-line = true
no-lines-before = ["future","standard-library","third-party","first-party","local-folder"]