-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
172 lines (153 loc) · 3.51 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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
[build-system]
requires = ['flit_core >=3.4,<4']
build-backend = 'flit_core.buildapi'
[project]
name = 'kiwipy'
dynamic = ['description', 'version']
authors = [
{name = 'Martin Uhrin', email = '[email protected]'},
{name = 'Sebastiaan P. Huber'},
{name = 'Jason Yu'},
{name = 'Sonia Collaud'},
]
readme = 'README.rst'
license = {file = 'LICENSE.txt'}
classifiers = [
'Development Status :: 4 - Beta',
'License :: OSI Approved :: MIT License',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: Python',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
]
keywords = ['ommunication', 'messaging', 'rpc', 'broadcast']
requires-python = '>=3.8'
dependencies = [
'deprecation',
'pyyaml~=6.0',
'shortuuid',
]
[project.urls]
Home = 'https://github.com/aiidateam/kiwipy'
Source = 'https://github.com/aiidateam/kiwipy'
Documentation = 'https://kiwipy.readthedocs.io'
[project.optional-dependencies]
docs = [
'docutils',
'jupyter', # For running doc examples
'nbsphinx', # Jupyter notebooks in docs
'pandoc',
'sphinx',
'sphinx-autobuild',
]
pre-commit = [
'pre-commit~=2.2',
'pylint==2.12.2',
]
rmq = [
'aio-pika~=9.0',
'pamqp~=3.2',
'pytray>=0.3.4,<0.4.0',
]
tests = [
'coverage',
'ipykernel',
'pytest-cov',
'pytest~=7.0',
'pytest-asyncio~=0.12,<0.17',
'pytest-notebook>=0.7',
'pytest-benchmark',
'pika',
'msgpack',
]
[tool.flit.module]
name = 'kiwipy'
[tool.flit.sdist]
exclude = [
'.github/',
'docs/',
'examples/',
'test/',
]
[tool.flynt]
line-length = 120
fail-on-change = true
[tool.isort]
force_sort_within_sections = true
include_trailing_comma = true
line_length = 120
multi_line_output = 3
[tool.pylint.format]
max-line-length = 120
[tool.pylint.messages_control]
disable = [
'duplicate-code',
'import-outside-toplevel',
'missing-docstring',
'bad-continuation',
'locally-disabled',
'too-few-public-methods',
'too-many-arguments',
'too-many-instance-attributes',
]
[tool.pytest.ini_options]
minversion = '6.0'
testpaths = [
'test',
]
filterwarnings = [
'ignore::DeprecationWarning:frozendict:',
]
[tool.yapf]
align_closing_bracket_with_visual_indent = true
based_on_style = 'google'
coalesce_brackets = true
column_limit = 120
dedent_closing_brackets = true
indent_dictionary_value = false
split_arguments_when_comma_terminated = true
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py37
[testenv]
usedevelop = true
[testenv:py{37,38,39}]
description = Run the unit tests
extras =
rmq
tests
commands = pytest {posargs}
[testenv:pre-commit]
description = Run the style checks and formatting
extras =
rmq
pre-commit
tests
commands = pre-commit run {posargs}
[testenv:docs-{update,clean}]
description = Build the documentation
extras =
rmq
docs
whitelist_externals = rm
commands =
clean: rm -rf docs/_build
sphinx-build -nW --keep-going -b {posargs:html} docs/source/ docs/_build/{posargs:html}
[testenv:docs-live]
description = Build the documentation and launch browser (with live updates)
extras =
rmq
docs
deps = sphinx-autobuild
commands =
sphinx-autobuild \
--re-ignore _build/.* \
--port 0 --open-browser \
-n -b {posargs:html} docs/source/ docs/_build/{posargs:html}
[pytest]
filterwarnings =
ignore::DeprecationWarning:distutils:
"""