-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
125 lines (110 loc) · 2.95 KB
/
pyproject.toml
File metadata and controls
125 lines (110 loc) · 2.95 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
[project]
name = "pypsa-app"
description = "tbd"
dynamic = ["version"]
authors = [
{ name = "Lukas Trippe", email = "lkstrp@pm.me" }
]
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.13"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.13",
]
keywords = ["pypsa", "energy", "power-systems", "visualization"]
dependencies = [
"fastapi",
"uvicorn[standard]",
"pydantic",
"pydantic-settings",
"sqlalchemy",
"pypsa>1.1",
"click",
"authlib",
"itsdangerous",
"httpx",
"python-multipart",
"alembic",
]
[project.optional-dependencies]
full = [
"psycopg2-binary",
"redis",
"celery[redis]",
]
dev = [
"pytest",
"pytest-asyncio",
]
[project.scripts]
pypsa-app = "pypsa_app.cli:main"
[project.urls]
Homepage = "https://app.pypsa.org"
Documentation = "https://github.com/PyPSA/pypsa-app/blob/main/README.md"
Repository = "https://github.com/PyPSA/pypsa-app"
Issues = "https://github.com/PyPSA/pypsa-app/issues"
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
package-dir = {"" = "src"}
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
"pypsa_app.backend" = ["static/**/*"]
[tool.setuptools_scm]
version_scheme = "no-guess-dev"
[tool.ruff.lint]
select = [
'F', # pyflakes
'E', # pycodestyle: Error
'W', # pycodestyle: Warning
'I', # isort
'UP', # pyupgrade
'PL', # pylint
'PERF', # perflint
'ANN', # flake8-annotations
'ASYNC', # flake8-async
'TID', # flake8-tidy-imports
'S', # flake8-bandit
'B', # flake8-bugbear
'C4', # flake8-comprehensions
'EM', # flake8-errmsg
'G', # flake8-logging-format
'PIE', # flake8-pie
'T20', # flake8-print
'PYI', # flake8-pyi
'PT', # flake8-pytest-style
'SIM', # flake8-simplify
'TC', # flake8-type-checking
'PTH', # flake8-use-pathlib
'RUF013', # ruff
'ERA', # eradicate
'TRY', # tryceratops
]
ignore = [
'ANN401', # Dynamically typed expressions are forbidden
'B008', # function call in default argument value
]
[tool.ruff.lint.per-file-ignores]
"src/pypsa_app/backend/alembic/**" = ["ALL"]
"{test,tests,examples,doc,docs}/**" = [
'ERA', # eradicate
'S', # flake8-bandit
'B', # flake8-bugbear
'EM', # flake8-errmsg
'T20', # flake8-print
'SIM', # flake8-simplify
'ARG', # flake8-unused-arguments
'PL', # pylint
'TRY', # tryceratops
'ANN', # flake8-annotations
]
[tool.ruff.lint.pylint]
max-args = 7
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"