-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
92 lines (78 loc) · 2.18 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
[tool.black]
line-length = 88
skip-magic-trailing-comma = true
target-version = ['py310', 'py311', 'py312']
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.github
| \.mypy_cache
| \.pytest_cache
| \.vscode
| _build
| build
| dist
| .*\.egg-info
)/
'''
[tool.ruff]
line-length = 88
select = ["E", "F", "I", "Q", "W"]
# line too long; Black will handle these
ignore = ["E501"]
[tool.ruff.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
# Ignore `E402` (import violations) and `F401` (unused imports) in all `__init__.py` files
[tool.ruff.per-file-ignores]
"__init__.py" = ["E402", "F401"]
[tool.ruff.flake8-quotes]
docstring-quotes = "double"
[tool.ruff.pydocstyle]
convention = "google"
[tool.ruff.pycodestyle]
max-doc-length = 200
ignore-overlong-task-comments = true
[tool.setuptools.packages.find]
where = ["src"]
include = ["calligraph*"]
[tool.setuptools.package-data]
calligraph = []
[tool.setuptools]
license-files = ["LICENSE", "CITATION"]
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "calligraph"
authors = [
{ name = "Stefan Pfenninger", email = "[email protected]" },
]
maintainers = [
{ name = "Stefan Pfenninger", email = "[email protected]" },
{ name = "Bryn Pickering", email = "[email protected]" },
]
description = "Visualisation tool for Calliope."
readme = "README.md"
requires-python = ">=3.10"
keywords = ["energy systems", "visualisation"]
license = { text = "Apache 2.0" }
classifiers = [
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
]
dynamic = ["version", "dependencies"]
[tool.setuptools.dynamic]
dependencies = { file = ["requirements.txt"] }
version = { attr = "calligraph.__init__.__version__" }
[project.scripts]
calligraph = "calligraph.cli:calligraph_cli"
[project.urls]
website = "https://www.callio.pe/"
repository = "https://github.com/calliope-project/calligraph"
changelog = "https://github.com/calliope-project/calligraph/CHANGELOG.md"