-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
110 lines (100 loc) · 2.56 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "infrasys"
version = "0.1.1"
description = ''
readme = "README.md"
requires-python = ">=3.10, <3.13"
license = "BSD-3-Clause"
keywords = []
authors = [
{ name = "Aadil Latif", email = "[email protected]" },
{ name = "Daniel Thom", email = "[email protected]" },
{ name = "Kapil Duwadi", email = "[email protected]" },
{ name = "Pedro Andres Sanchez Perez", email = "[email protected]" },
{ name = "Tarek Elgindy", email = "[email protected]" },
]
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 = [
"numpy~=1.26.4",
"pyarrow~=15.0.2",
"pint~=0.23",
"loguru~=0.7.2",
"rich~=13.7.1",
"pydantic >= 2.7, < 3",
]
[project.optional-dependencies]
dev = [
"furo",
"mypy",
"myst_parser",
"pre-commit",
"pyarrow-stubs",
"pytest",
"pytest-cov",
"ruff",
"sphinx",
"sphinx-click",
"autodoc_pydantic~=2.0",
"sphinx-copybutton",
"sphinx-tabs~=3.4",
]
[project.urls]
Documentation = "https://github.com/NREL/infrasys#readme"
Issues = "https://github.com/NREL/infrasys/issues"
Source = "https://github.com/NREL/infrasys"
[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",
]
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"]
"**/{tests,docs,tools}/*" = ["E402"]