-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
115 lines (105 loc) · 2.61 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
[tool.poetry]
name = "edgeql_qb"
version = "0.4.3"
description = "EdgeQL Query Builder"
authors = ["Ivan Larin <[email protected]>"]
license = "MIT"
maintainers = ["Ivan Larin <[email protected]>"]
readme = "README.md"
homepage = "https://github.com/Pentusha/edgeql-qb"
repository = "https://github.com/Pentusha/edgeql-qb"
keywords = ["edgedb", "edgeql"]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
packages = [
{ include = "edgeql_qb" },
]
[tool.poetry.dependencies]
python = "^3.10"
[tool.poetry.dev-dependencies]
mypy = "^1.13.0"
pre-commit = "^4.0.1"
pytest = "^8.3.4"
pytest-cov = "^6.0.0"
edgedb = "^2.2.0"
ruff = "^0.7.4"
pyright = "^1.1.390"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
exclude = [
".git",
"__pycache__",
]
line-length = 99
lint.ignore = ["D10", "D203", "D213"]
lint.select = [
"C9", # mccabe
"D", # pycodestyle
"E", # error
"F", # pyflakes
"W", # warning
"Q", # flake8-quotes
"T20", # flake8-print
"SIM", # flake8-simplify
"ERA", # flake8-eradicate
"DTZ", # flake8-datetimez
"UP", # pyupgrade
"FBT", # flake8-boolean-trap
"I", # isort
"RUF", # ruff specific
"PL", # pylint
"PIE", # flake8-pie
"G", # flake8-logging-format
"C4", # flake8-comprehensions
"N", # pep8-naming
"COM", # flake8-commas
"ASYNC", # flake8-async
"PGH", # pygrep-hooks
"G", # flake8-logging-format
]
[tool.ruff.lint.mccabe]
max-complexity = 3
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"F401",
"F403",
]
"tests/**/test_*.py" = [
"D10", # missing docstring
"PLR2004", # magick values
]
"edgeql_qb/types.py" = [
"N801", # invalid-class-name
]
[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
[tool.ruff.lint.flake8-implicit-str-concat]
allow-multiline = false
[tool.mypy]
# plugins =
# --strict
disallow_any_generics = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
implicit_reexport = false
strict_equality = true
ignore_missing_imports = false
# --strict end