This repository was archived by the owner on Jan 21, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
177 lines (163 loc) · 3.75 KB
/
pyproject.toml
File metadata and controls
177 lines (163 loc) · 3.75 KB
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
173
174
175
176
177
[project]
name = "python-chat"
version = "0.1.0"
description = ""
readme = "README.md"
requires-python = ">=3.11, <4"
dependencies = [
"python-engineio (>=4.9.1)",
"python-socketio (>=5.11.4)",
"simple-websocket (>=1.0.0)",
"werkzeug (>=3.0.4)",
"wsproto (>=1.2.0)",
"flask-sqlalchemy (>=3.1.0)",
"flask-login (>=0.6.3)",
"psycopg2-binary (>=2.9.9)",
"flask-wtf (>=1.2.1)",
"bidict (>=0.23.1)",
"blinker (>=1.8.2)",
"click (>=8.1.7)",
"colorama (>=0.4.6)",
"dnspython (>=2.6.1)",
"eventlet (>=0.37.0)",
"flask (>=3.0.3)",
"flask-socketio (>=5.3.7)",
"greenlet (>=3.1.0)",
"gunicorn (>=23.0.0)",
"h11 (>=0.15.0)",
"itsdangerous (>=2.2.0)",
"jinja2 (>=3.1.4)",
"markupsafe (>=2.1.5)",
"packaging (>=24.1)",
"pydantic (>=2.0.0)",
"pydantic-core (>=2.0.0)",
"mypy (>=1.15.0,<2.0.0)",
"testcontainers (>=4.10.0,<5.0.0)",
"ruff (>=0.11.6,<0.12.0)",
"pre-commit (>=4.2.0,<5.0.0)",
"poetry (>=2.1.3,<3.0.0)",
]
[tool.poetry]
package-mode = true
packages = [{ include = "python_chat" }]
[tool.poetry.group.dev.dependencies]
pytest-cov = "^6.1.1"
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.mypy]
plugins = "pydantic.mypy"
exclude = ["postgres-data", "tests"]
warn_return_any = true
warn_unused_configs = true
follow_untyped_imports = true
ignore_missing_imports = true
warn_unreachable = true
[tool.ruff]
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
"./postgres-data",
]
line-length = 200
indent-width = 4
target-version = "py313"
[tool.ruff.lint]
# E - pycodestyle F - Pyflakes UP - pyupgrade B - flake8-bugbear SIM - flake8-simplify I - isort
# N - flake8-annotations A - flake8-annotations T20 - flake8-tidy-imports ERA - flake8-eradicate
# C4 - flake8-comprehensions TID - flake8-tidy-imports PERF - flake8-perf
select = [
"E",
"F",
"UP",
"B",
"SIM",
"I",
"N",
"A",
"T20",
"ERA",
"C4",
"TID",
"PERF",
]
ignore = ["SIM108", "E712"]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.lint.per-file-ignores]
# Ignore E501 (line too long) in tests.
"tests/*" = ["E501"]
[tool.ruff.lint.isort]
split-on-trailing-comma = false
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
[tool.pytest.ini_options]
pythonpath = "."
addopts = ["--import-mode=importlib", "-v"]
testpaths = ["/tests"]
norecursedirs = [
"postgres-data",
".git",
".venv",
"__pycache__",
"static",
"templates",
"logs",
]
[tool.coverage.run]
source = ["python_chat"]
omit = [
"*/db_init.py",
"*/postgres-data/*",
"*/tests/conftest.py",
"*/migrations/*",
"*/settings/*",
"*/__pycache__/*",
"*/.env/*",
"*/.venv/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"@overload",
"except ImportError",
"\\.\\.\\.",
"raise NotImplementedError()",
"def __repr__",
"if __name__ == .__main__.:",
]