-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
70 lines (64 loc) · 1.82 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
[tool.poetry]
name = "fau_colors"
version = "1.8.0"
description = "The official colors of FAU as matplotlib/seaborn colormaps"
authors = [
"Robert Richer <[email protected]>",
"Arne Küderle <[email protected]>",
]
readme = "README.md"
homepage = "https://github.com/mad-lab-fau/fau_colors"
repository = "https://github.com/mad-lab-fau/fau_colors"
license = "MIT"
[tool.poetry.dependencies]
python = ">=3.9,<3.13"
matplotlib = ">=3.6.3"
seaborn = ">=0.11.2"
typing-extensions = ">=3.7"
[tool.poetry.dev-dependencies]
ipykernel = ">=6"
ipympl = "^0.9.2"
poethepoet = "^0.10.0"
pytest = "^6.2.5"
black = {version="^22.3.0", extras=["d"]}
isort = "^5.9.3"
[tool.black]
line-length = 120
target-version = ['py38']
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| docs
| build
| dist
| \.virtual_documents
)/
)
'''
[tool.isort]
profile = "black"
multi_line_output = 3
line_length = 120
skip_gitignore = true
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poe.tasks]
_format_black = "black ."
_format_isort = "isort ."
format = ["_format_black", "_format_isort"]
_check_black = "black . --check"
_check_isort = "isort . --check"
check = ["_check_black", "_check_isort"]
update_docs = "python _docs/_generate_overview_image.py"
update_palettes = "python color_palettes/_create_palettes.py"
bump_version = { "script" = "_tasks:task_update_version()"}
register_ipykernel = { cmd = "python -m ipykernel install --user --name fau_colors --display-name fau_colors", help = "Add a new jupyter kernel for the project." }
remove_ipykernel = { cmd = "jupyter kernelspec uninstall fau_colors", help = "Remove the project specific jupyter kernel."}