-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
123 lines (109 loc) · 2.91 KB
/
pyproject.toml
File metadata and controls
123 lines (109 loc) · 2.91 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
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "fluxopt_plot"
dynamic = ["version"]
description = "Interactive plotly visualization for fluxopt energy system models."
readme = "README.md"
requires-python = ">=3.12"
license = "MIT"
authors = [
{ name = "Felix Bumann", email = "felixbumann387@gmail.com" },
]
maintainers = [
{ name = "Felix Bumann", email = "felixbumann387@gmail.com" },
]
keywords = ["fluxopt", "visualization", "plotly", "energy systems"]
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Visualization",
]
dependencies = [
"fluxopt>=0.0.1a0",
"plotly>=6",
]
[project.urls]
repository = "https://github.com/FBumann/fluxopt-plot"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.targets.wheel]
packages = ["src/fluxopt_plot"]
[tool.hatch.build.targets.sdist]
include = ["src/fluxopt_plot/", "LICENSE", "README.md"]
[dependency-groups]
dev = [
"mypy==1.20.0",
"pre-commit==4.5.1",
"pytest==9.0.2",
"pytest-cov==7.0.0",
"ruff==0.15.9",
]
docs = [
"mike==2.1.4",
"mkdocs==1.6.1",
"mkdocs-include-markdown-plugin==7.2.1",
"mkdocs-material==9.7.5",
"mkdocs-minify-plugin==0.8.0",
"mkdocstrings-python==2.0.3",
"pygments==2.19.2",
"pymdown-extensions==10.21",
]
[tool.ruff]
target-version = "py312"
line-length = 120
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # Pyflakes
"W", # pycodestyle warnings
"I", # isort
"B", # flake8-bugbear
"N", # pep8-naming
"UP", # pyupgrade
"FA", # flake8-future-annotations
"TC", # flake8-type-checking
"SIM", # flake8-simplify
"RUF", # Ruff-specific rules
"PERF", # perflint
"C4", # flake8-comprehensions
"PIE", # flake8-pie
"RET", # flake8-return
"FLY", # flynt (f-string)
"FURB", # refurb
"T20", # flake8-print
"PLC", # pylint conventions
"PLE", # pylint errors
]
ignore = [
"E501", # line too long (handled by formatter)
"RET504", # unnecessary assignment before return
"PLC0415", # import not at top level (used for circular import avoidance)
]
extend-fixable = ["B", "SIM", "RUF", "C4", "UP"]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["S101"]
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
docstring-code-format = true
[tool.ruff.lint.pyupgrade]
keep-runtime-typing = false
[tool.mypy]
python_version = "3.12"
strict = true
warn_return_any = true
warn_unused_configs = true
[[tool.mypy.overrides]]
module = [
"fluxopt.*",
"plotly.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
pythonpath = ["tests"]