-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
75 lines (64 loc) · 2.03 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
[build-system] # Require setuptool version due to https://github.com/pypa/setuptools/issues/2938
requires = ["setuptools>=61.0.0", "wheel"]
# See https://python-poetry.org/docs/pyproject/ for more keywords for the project table
[project]
# Name of your package
name = "mypackage"
authors = [
{name = "Jørgen S. Dokken", email = "dokken@simula.no"},
{name = "Henrik N. Finsberg", email = "henriknf@simula.no"}
]
version = "0.2.0.dev0"
description = "Minimal package for adding two numbers"
# "readme" the description field in your package, see: https://python-poetry.org/docs/pyproject/#readme
readme = "README.md"
requires-python = ">=3.8"
# Path to license file, see: https://spdx.org/licenses/ for options
license = {file = "LICENSE"}
# Direct dependencies
dependencies = [
'numpy'
]
[project.optional-dependencies]
test = [
"flake8", # Formatting: https://flake8.pycqa.org/en/latest/user/error-codes.html
"mypy", # Input/Output consistency
"pytest", # Testing suite
"pytest-cov" # Coverage reports
]
docs = [
"jupyter-book", # Required to build documentation
"jupytext", # Required to convert .py to .ipynb files
"ipython!=8.7.0" # https://github.com/ipython/ipython/issues/13845
]
binder = [ # Required to interface with Binder when having a Dockerfile in root
"jupyterlab",
"notebook"
]
pypi = [
"build" # Used for building wheels and uploading to pypi
]
all = ["mypackage[test,docs,binder,pypi]"]
[tool.mypy]
ignore_missing_imports = true # Does not show errors when importing untyped libraries
exclude = [ # We only want mypy to consider files that are not generated in installing or building documentation
"docs/",
"build/"
]
files = [ # Folder to which files that should be checked by mypy
"src",
"test"
]
[tool.pytest.ini_options]
addopts = [
"--import-mode=importlib",
"--cov=mypackage",
"--cov-report=html",
"--cov-report=term-missing",
"-v"]
testpaths = [
"test"
]
# Pair notebooks with python files
[tool.jupytext]
formats = "demos///ipynb,demos///py:percent"