forked from usmanhalalit/DjangoRealtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
86 lines (72 loc) · 1.77 KB
/
pyproject.toml
File metadata and controls
86 lines (72 loc) · 1.77 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
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "djrealtime"
version = "1.1.1"
description = "Realtime browser events for Django + PostgreSQL"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"Django>=5.0",
"psycopg[binary]",
]
authors = [
{name = "Muhammad Usman", email = "hi@usman.it"}
]
classifiers = [
"Framework :: Django",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
]
[project.optional-dependencies]
dev = [
"pytest",
"pytest-django",
"pytest-cov",
"pytest-asyncio",
"ruff",
]
[tool.setuptools.packages.find]
exclude = ["example*", "tests*"]
[tool.setuptools.package-data]
djangorealtime = ["static/**/*", "templates/**/*"]
[tool.pytest.ini_options]
addopts = "--tb=short -v"
testpaths = ["tests"]
python_files = ["test_*.py"]
filterwarnings = [
"ignore:Error when trying to teardown test databases.*:pytest.PytestWarning",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if __name__ == .__main__.:",
"except.*:",
"raise NotImplementedError",
]
[tool.ruff]
target-version = "py310"
line-length = 100
exclude = ["*/migrations/*"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"SIM", # flake8-simplify
"PERF", # perflint
"RUF", # ruff-specific rules
"DJ", # flake8-django
]
ignore = [
"RUF012", # mutable class attributes ClassVar annotation
"DJ001" # null=True on CharField
]
[tool.ruff.lint.isort]
known-first-party = ["djangorealtime"]