-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
104 lines (92 loc) · 2.95 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
[build-system]
requires = ["flit_core >=3.2"]
build-backend = "flit_core.buildapi"
[project]
name = "jupyter-kernel-install"
authors = [{name = "DKRZ, Clint", email = "[email protected]"}]
readme = "README.md"
license = {file = "LICENSE"}
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
]
dynamic = ["version"]
description = "Utility to install various jupyter kernel specs."
requires-python = ">=3.8"
dependencies = [
"appdirs",
"bash_kernel",
"ipykernel",
"rich",
"rich-argparse",
]
[project.optional-dependencies]
dev = ["tox", "flit", "pytest", "pytest-cov", "pytest-mock", "mock", "pytest-env"]
[project.urls]
Documentation = "https://github.com/FREVA-CLINT/install-kernelspec/README.md"
Issues = "https://github.com/FREVA-CLINT/install-kernelspec/issues"
Source = "https://github.com/FREVA-CLINT/install-kernelspec"
Home= "https://github.com/FREVA-CLINT/install-kernelspec"
[project.scripts]
jupyter-kernel-install = "jupyter_kernel_install.cli:cli"
[tool.mypy]
files = "src/jupyter_kernel_install"
strict = true
warn_unused_ignores = true
warn_unreachable = true
show_error_codes = true
install_types = true
non_interactive = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
warn_redundant_casts = true
ignore_missing_imports = true
[package-data]
freva_deployment = ["py.typed"]
[tool.tox]
legacy_tox_ini = """
[tox]
min_version = 4.0
env_list = types, lint, test
[testenv]
parallel_show_output = false
[testenv:test]
deps = -c {toxinidir}/.github/dependabot/constraints.txt
-e .[dev]
commands =
python3 -m pytest -vv --cov=src --cov-report=html:coverage_report --junitxml report.xml --cov-report xml src/jupyter_kernel_install/tests
python3 -m coverage report --fail-under=98.5 --precision=2
[testenv:lint]
deps = .[dev]
black
isort
flake8
pylint
commands =
isort --check --profile black -t py312 -l 79 src
flake8 src/jupyter_kernel_install --count --max-complexity=5 --max-line-length=88 --statistics --show-source
pylint src/jupyter_kernel_install --fail-under 9
[testenv:types]
deps = .[dev]
mypy
pytest-stub
commands = mypy --install-types --non-interactive
[testenv:release]
deps = git-python
packaging
requests
tomli
commands = python3 bump.py tag jupyter_kernel_install -b main
allowlist_externals = rm
curl
commands_pre = curl -H 'Cache-Control: no-cache' -Ls -o bump.py https://raw.githubusercontent.com/FREVA-CLINT/freva-deployment/main/release.py
commands_post = rm bump.py
"""