-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
118 lines (110 loc) · 2.73 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
[build-system]
requires = ["poetry_core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.coverage.run]
branch = true
source = ["pgjsonschema"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise AssertionError",
"raise NotImplementedError",
"pass",
"pytest.mark.skip"
]
show_missing = true
fail_under = 100
[tool.poetry]
name = "django-pgjsonschema"
packages = [
{ include = "pgjsonschema" }
]
exclude = [
"*/tests/"
]
version = "0.0.0"
description = "Postgres JSON validation with Rust triggers."
authors = ["Max Muoto"]
classifiers = [
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
"Framework :: Django",
]
license = "BSD-3-Clause"
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.11.0,<4"
django = ">=3"
django-pgtrigger = "^4.11.1"
pydantic = "^2.7.0"
[tool.poetry.dev-dependencies]
dj-database-url = "2.1.0"
git-tidy = "1.2.0"
psycopg2-binary = "2.9.9"
pytest = "7.4.2"
pytest-cov = "4.1.0"
pytest-dotenv = "0.5.2"
pytest-django = "4.5.2"
django-dynamic-fixture = "4.0.1"
tox = "4.11.3"
ruff = "0.3.7"
mkdocs = "1.5.3"
mkdocs-material = "9.4.4"
mkdocstrings-python = "1.7.2"
footing = "*"
setuptools = "*"
poetry-core = "*"
[tool.pytest.ini_options]
xfail_strict = true
addopts = "--reuse-db"
testpaths = "pgjsonschema/tests"
norecursedirs = ".venv"
DJANGO_SETTINGS_MODULE = "settings"
[tool.ruff]
src = ["pgjsonschema"]
lint.select = [
"I", # isort
"E", # pycodestyle error
"F", # pycodestyle warning
"PT", # flake8-pytest-style
"G", # flake8-logging-format
"C4", # flake8-comprehensions
"TID", # flake8-tidy-imports
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"PTH", # flake8-use-pathlib
"B", # flake8-bugbear
"S", # flake8-bandit
"DTZ", # flake8-datetimez
"UP", # pyupgrade
"PL", # Pylint
"PERF", # PERF
"RUF", # Ruff-specific rules
]
lint.ignore = [
"E501", # Ignore line length.
"C408", # Allow for explicit dict, tuple, and list construction.
"RUF012", # Don't have to annotate mutable class vars.
"E402", # Sometimes you want explicit control over where an import occurs.
]
target-version = "py311"
[tool.pyright]
include = ["pgjsonschema"]
exclude = [
"**/node_modules",
"**/__pycache__",
"src/experimental",
"src/typestubs",
]
pythonVersion = "3.11"
typeCheckingMode = "basic"