-
Notifications
You must be signed in to change notification settings - Fork 6
/
pyproject.toml
121 lines (106 loc) · 2.8 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
# NOTE: you have to use single-quoted strings in TOML for regular expressions.
# It's the equivalent of r-strings in Python. Multiline strings are treated as
# verbose regular expressions by Black. Use [ ] to denote a significant space
# character.
[tool.poetry]
name = "noteable-origami"
version = "2.0.0"
description = "The Noteable API interface"
authors = ["Matt Seal <[email protected]>"]
maintainers = ["Matt Seal <[email protected]>"]
license = "BSD-3-Clause"
readme = "README.md"
repository = "https://github.com/noteable-io/origami"
# old setup.cfg had a bdist_wheel option.
# To build a wheel, use poetry build -f wheel
keywords = ["notebook", "api", "noteable"]
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
]
packages = [
{ include = "origami" },
]
# Manifest.in is subsumed by poetry here
# https://python-poetry.org/docs/pyproject/#include-and-exclude
include = []
[tool.poetry.dependencies]
python = ">=3.8,<4.0"
bitmath = "^1.3.3"
httpx = ">=0.22"
jwt = "^1.3.1"
nbformat = "^5.4.0"
orjson = "^3.8.7"
pydantic = "^2.4.2"
websockets = ">=11.0"
backoff = "^2.1.2"
cryptography = ">=40.0"
diff-match-patch = "^20200713"
sending = "^0.3.0"
importlib-metadata = ">=6.8.0"
structlog = { version = "*", optional = true }
typer = { version = "^0.9.0", optional = true }
[tool.poetry.extras]
cli = ["structlog", "typer"]
[tool.poetry.scripts]
origami = "origami.cli:app"
[tool.poetry.group.dev.dependencies]
pytest = "^7.2.1"
pytest-cov = "^4.0.0"
black = "^23.1.0"
isort = "^5.12.0"
flake8-docstrings = "^1.6.0"
notebook = "^6.4.11"
pytest-asyncio = "^0.19.0"
structlog = "^23.1.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 100
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| migrations
| src/nbformat
# The following are specific to Black, you probably don't want those.
| blib2to3
| tests/data
| profiling
)/
'''
[tool.isort]
line_length = 100
multi_line_output = 3
include_trailing_comma = true
known_third_party = []
[tool.ruff]
line-length = 100
[tool.coverage.run]
branch = false
omit = ["origami/_version.py", "*/tests/*"]
[tool.coverage.report]
exclude_lines = ["if self.debug:",
"pragma: no cover",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == '__main__':"]
[tool.pytest.ini_options]
testpaths = [
"origami/tests",
]
# https://pytest-asyncio.readthedocs.io/en/latest/reference/configuration.html#configuration
asyncio_mode = "auto"