-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathpyproject.toml
151 lines (133 loc) · 3.53 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
[tool.poetry]
name = "nbpreview"
version = "0.9.1"
description = "nbpreview"
authors = ["Paulo S. Costa <[email protected]>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/paw-lu/nbpreview"
repository = "https://github.com/paw-lu/nbpreview"
documentation = "https://nbpreview.readthedocs.io"
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
]
[tool.poetry.urls]
Changelog = "https://github.com/paw-lu/nbpreview/releases"
Issues = "https://github.com/paw-lu/nbpreview/issues"
# dependencies-start
[tool.poetry.dependencies]
python = "^3.8.0"
rich = ">=12.4.1"
typer = ">=0.4.1,<0.6.0"
nbformat = { extras = ["fast"], version = ">=5.2.0" }
Pygments = ">=2.10.0"
ipython = ">=7.27,<9.0"
lxml = ">=4.6.3"
pylatexenc = ">=2.10"
httpx = ">=0.19,<0.24"
Jinja2 = ">=3.0.1"
html2text = ">=2020.1.16"
types-click = ">=7.1.5"
Pillow = ">=8.3.1,<10.0.0"
picharsso = ">=2.0.1"
validators = ">=0.18.2,<0.21.0"
yarl = ">=1.6.3"
markdown-it-py = ">=1.1,<3.0"
mdit-py-plugins = ">=0.3.0"
click-help-colors = ">=0.9.1"
term-image = ">=0.3.0"
[tool.poetry.dev-dependencies]
pytest = ">=7.1.2"
coverage = { extras = ["toml"], version = ">=6.4" }
safety = ">=2.0.0"
mypy = ">=0.961"
typeguard = ">=2.13.3"
xdoctest = { extras = ["colors"], version = ">=1.0.0" }
sphinx = ">=5.0.2"
sphinx-autobuild = ">=2021.3.14"
pre-commit = ">=2.19.0"
flake8 = ">=4.0.1"
black = { extras = ["jupyter"], version = ">=21.12b0" }
flake8-bandit = ">=3.0.0"
flake8-bugbear = ">=22.6.22"
flake8-docstrings = ">=1.5.0"
flake8-rst-docstrings = ">=0.2.6"
pep8-naming = ">=0.13.0"
darglint = ">=1.8.1"
pre-commit-hooks = ">=4.3.0"
sphinx-click = ">=4.2.0"
Pygments = ">=2.10.0"
pyupgrade = ">=2.34.0"
furo = ">=2021.11.12"
pdbpp = ">=0.10.3"
ipykernel = ">=6.15.0"
pytest-mock = ">=3.8.1"
interrogate = ">=1.5.0"
isort = ">=5.10.1"
nbqa = ">=1.3.1"
click = ">=8.1.3"
autoflake = ">=1.4"
myst-parser = ">=0.18.0"
sphinxext-opengraph = ">=0.6.3"
sphinx-copybutton = ">=0.5.0"
sphinx-design = ">=0.2.0"
sphinx-autodoc-typehints = ">=1.18.3"
tomli = ">=2.0.1"
sphinx-favicon = ">=0.2"
# dependencies-end
[tool.poetry.scripts]
nbpreview = "nbpreview.__main__:app"
nbp = "nbpreview.__main__:app"
[tool.coverage.paths]
source = ["src", "*/site-packages"]
tests = ["tests", "*/tests"]
[tool.coverage.run]
branch = true
source = ["nbpreview", "tests"]
[tool.coverage.report]
show_missing = true
fail_under = 100
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Typing overloads are never run
"@typing.overload",
]
[tool.mypy]
strict = true
warn_unreachable = true
pretty = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
[[tool.mypy.overrides]]
module = "click_help_colors,jsonschema,lxml.*,nbformat.*,PIL.*,picharsso.*,pygments,pylatexenc,pytest_mock,term_image,validators"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "mdit_py_plugins.*"
no_implicit_reexport = false
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
markers = [
"no_atty_mock: Test where sys.stdout.isatty should not be mocked",
"no_typeguard: Tests typeguard should ignore",
]
norecursedirs = "tests/util"
[tool.interrogate]
verbose = 2
fail-under = 100
color = true
[tool.isort]
profile = "black"
[tool.nbqa.dont_skip_bad_cells]
black = true
flake8 = true
pyupgrade = true
isort = true
[tool.nbqa.addopts]
flake8 = ["--extend-ignore=D100"]