forked from napari/napari
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
100 lines (92 loc) · 2.63 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
[build-system]
requires = [
"setuptools >= 42",
"wheel",
"setuptools_scm[toml]>=3.4"
]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
write_to = "napari/_version.py"
[tool.briefcase]
project_name = "napari"
bundle = "com.napari"
author = "napari"
url = "https://napari.org/"
license = "BSD license"
# version populated in bundle.py
version = "0.0.1"
[tool.briefcase.app.napari]
formal_name = "napari"
description = "napari: a multi-dimensional image viewer"
sources = ['napari']
icon = "resources/icon"
# populated in bundle.py
requires = []
[tool.black]
target-version = ['py36', 'py37', 'py38']
skip-string-normalization = true
line-length = 79
exclude = '''
(
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| examples
| vendored
| _vendor
)/
| napari/resources/qt.py
| tools/minreq.py
)
'''
[tool.check-manifest]
ignore = [
"bundle.py",
".cirrus.yml",
".pre-commit-config.yaml",
"asv.conf.json",
"codecov.yml",
"Makefile",
"mypy.ini",
"napari/_version.py", # added during build by setuptools_scm
"tools/minreq.py",
"tox.ini",
"napari/_qt/qt_resources/_qt_resources_*.py"
]
[tool.isort]
profile = "black"
line_length = 79
skip_glob = ["*examples/*", "*vendored*", "*_vendor*"]
[tool.pytest.ini_options]
# These follow standard library warnings filters syntax. See more here:
# https://docs.python.org/3/library/warnings.html#describing-warning-filters
addopts = "--maxfail=5 --durations=5"
# NOTE: only put things that will never change in here.
# napari deprecation and future warnings should NOT go in here.
# instead... assert the warning with `pytest.warns()` in the relevant test,
# That way we can clean them up when no longer necessary
filterwarnings = [
"error:::napari", # turn warnings from napari into errors
"default:::napari.+vendored.+", # just print warnings inside vendored modules
"ignore::DeprecationWarning:shibokensupport",
"ignore::DeprecationWarning:ipykernel",
"ignore:Accessing zmq Socket:DeprecationWarning:jupyter_client",
"ignore:pythonw executable not found:UserWarning:",
"ignore:data shape .* exceeds GL_MAX_TEXTURE_SIZE:UserWarning",
"ignore:For best performance with Dask arrays in napari:UserWarning:",
"ignore:numpy.ufunc size changed:RuntimeWarning",
"ignore:Multiscale rendering is only supported in 2D. In 3D, only the lowest resolution scale is displayed",
"ignore:Alternative shading modes are only available in 3D, defaulting to none",
]
markers = [
"sync_only: Test should only be run synchronously",
"async_only: Test should only be run asynchronously"
]