-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
132 lines (111 loc) · 3.16 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
[build-system]
build-backend = "setuptools.build_meta"
requires = [ "setuptools", "wheel", "setuptools-scm",]
[project]
classifiers = [
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Framework :: AsyncIO",
"Framework :: Trio",
"Framework :: AnyIO",
"License :: OSI Approved",
"Development Status :: 4 - Beta",
]
dependencies = [
"anyio ~= 4.2",
"asyncclick",
"attrs",
"msgpack",
"outcome",
"ruyaml",
"simpleeval",
"moat-lib-codec >= 0.4",
]
dynamic = [ "version",]
keywords = [ "MoaT",]
requires-python = ">=3.8"
name = "moat-util"
description = "Utility code for the rest of MoaT"
readme = "README.rst"
[[project.authors]]
name = "Matthias Urlichs"
email = "matthias@urlichs.de"
[project.license]
file = "LICENSE.txt"
[project.urls]
homepage = "https://m-o-a-t.org"
repository = "https://github.com/M-o-a-T/moat-util"
[project.optional-dependencies]
event = [ "attr", "outcome",]
main = [ "asyncclick", "getpass",]
msg = [ "msgpack",]
path = [ "simpleeval",]
queue = [ "outcome",]
systemd = [ "systemd.daemon",]
yaml = [ "ruyaml",]
time = [ "calendar",]
dev = [ "flake8", "isort",]
[tool.ruff]
preview = true
line-length = 99
target-version = "py310"
[tool.ruff.lint]
select = ["ALL"]
ignore = ["ANN","PTH","PERF", "D105", "D107","A003","S101","RUF001","RUF002","PLW1514", "D2","D3","D4","T2","FBT","TRY003","EM10","PLR","C","RET50","TD","FIX","N","ERA","BLE001","COM812","ISC001","UP038"]
explicit-preview-rules = true
[tool.ruff.lint.flake8-comprehensions]
allow-dict-calls-with-keyword-arguments = true
[tool.ruff.lint.flake8-builtins]
builtins-ignorelist = ["id","help"]
[tool.ruff.lint.isort]
no-lines-before = ["future"]
required-imports = ["from __future__ import annotations"]
section-order = ["future","standard-library","first-party","third-party","moat","local-folder","upy","typing"]
extra-standard-library = ["pytest", "anyio"]
force-to-top = ["moat.util"]
[tool.ruff.lint.isort.sections]
"moat" = ["moat"]
"upy" = ["micropython", "machine", "esp"]
"typing" = ["typing"]
[tool.flake8]
max-line-length = 99
ignore = [ "F841", "E731", "E502", "E402", "E127", "E123", "W503", "E231", "E203", "F401"]
[tool.isort]
line_length = 99
multi_line_output = 3
profile = "black"
[tool.setuptools]
packages = [ "moat.util",]
[tool.setuptools.package-data]
"*" = ["*.yaml"]
[tool.pylint.messages_control]
disable="wrong-import-order,ungrouped-imports,too-many-nested-blocks,unspecified-encoding,missing-module-docstring,no-else-continue,too-many-instance-attributes,too-many-statements,too-many-return-statements,superfluous-parens,too-few-public-methods,use-dict-literal,too-many-locals,no-else-return,too-many-arguments,too-many-branches,invalid-name,fixme,no-else-raise,duplicate-code,unnecessary-pass"
[tool.setuptools_scm]
[tool.tox]
legacy_tox_ini = """
[tox]
isolated_build = True
envlist = py310,check
[testenv]
setenv =
PYTHONPATH = {env:PYTHONPATH}{:}{toxinidir}
deps =
trio
pytest
commands =
python3 -mpytest tests/
[testenv:check]
commands =
pylint moat tests
flake8p moat tests
black --check moat tests
deps =
pytest
pylint
black
flake8-pyproject
flake8
"""
[tool.black]
line-length = 99
[tool.moat]