-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
102 lines (86 loc) · 2.28 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
[tool.poetry]
name = "websockets-cli"
version = "0.3.0"
description = "A simple yet powerful websocket cli"
authors = ["le_woudar <[email protected]>"]
readme = "README.md"
license = "Apache-2.0"
keywords = ["websocket", "cli", "trio", "anyio"]
homepage = "https://pyws.readthedocs.io"
repository = "https://github.com/lewoudar/ws"
documentation = "https://pyws.readthedocs.io"
classifiers = [
"Intended Audience :: Developers",
"Topic :: Terminals",
"Operating System :: OS Independent",
"Framework :: Trio",
"Environment :: Web Environment",
"Programming Language :: Python :: Implementation :: PyPy"
]
packages = [
{ include = "ws" }
]
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/lewoudar/ws/issues"
"Changelog" = "https://github.com/lewoudar/ws/blob/main/CHANGELOG.md"
[tool.poetry.dependencies]
python = "^3.8"
trio-websocket = "^0.11.1"
rich = "^13.7.1"
pydantic = "^2.7.0"
tomli = "^2.0.1"
click = "^8.1.7"
certifi = "^2024.2.2"
click-didyoumean = "^0.3.1"
shellingham = "^1.5.0"
prompt-toolkit = "^3.0.41"
pydantic-settings = "^2.2.1"
# I need this dependency pin until this issue is resolved
# https://github.com/python-trio/trio-websocket/issues/187
trio = "<0.24.0"
[tool.poetry.group.test.dependencies]
pytest = "^7.0.0"
pytest-cov = "^3.0.0"
pytest-trio = "^0.7.0"
pre-commit = "^2.17.0"
cffi = "^1.15.0"
pytest-mock = "^3.7.0"
mock = "^5.0.0"
trustme = "^0.9.0"
freezegun = "^1.2.1"
nox = "^2023.4.22"
[tool.poetry.group.lint.dependencies]
bandit = "^1.7.4"
ruff = "^0.1.6"
[tool.poetry.group.docs.dependencies]
mkdocs = "^1.4.0"
mkdocs-material = "^9.0.0"
[tool.poetry.group.audit.dependencies]
safety = "^2.3.0"
[tool.poetry.group.dev.dependencies]
bump-pydantic = "^0.7.0"
ipython = "8.10.0"
[tool.poetry.scripts]
ws = "ws.main:cli"
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--cov=ws --cov-report html --cov-report xml --cov-report term"
trio_mode = true
[tool.ruff]
line-length = 120
target-version = "py38"
[tool.ruff.lint]
extend-select = [
"UP", # pyupgrade
"I", # isort
"S", # flake8-bandit
"B", # flake8-bugbear
"C90", # McCabe complexity
"RUF"
]
ignore = ["RUF012", "UP007", "UP006"]
[tool.ruff.format]
quote-style = "single"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"