This repository has been archived by the owner on Oct 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
116 lines (101 loc) · 2.14 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
[tool.poetry]
name = "edgeql-queries"
version = "0.4.0"
description = "Simple EdgeQL in Python."
authors = ["Nik Sidnev <[email protected]>"]
repository = "https://github.com/nsidnev/edgeql-queries"
documentation = "https://nsidnev.github.io/edgeql-queries/"
readme = "README.md"
license = "FreeBSD"
[tool.poetry.dependencies]
python = "^3.7"
edgedb = ">= 0.19.0"
[tool.poetry.group.dev.dependencies]
nox = "^2022.8.7"
[tool.poetry.group.format.dependencies]
black = "^22.8"
isort = "^5.10"
autoflake = "^1.5.3"
add-trailing-comma = "^2.2.3"
[tool.poetry.group.lint.dependencies]
wemake-python-styleguide = "^0.16.1"
flake8-pytest-style = "^1.6.0"
mypy = "^0.971"
[tool.poetry.group.test.dependencies]
pytest = "^7.1.2"
pytest-cov = "^3.0.0"
pytest-asyncio = "^0.19.0"
pytest-env = "^0.6.2"
[tool.poetry.group.docs.dependencies]
mkdocs = "^1.3.1"
mkdocs-material = "^8.4.2"
mkdocstrings = { version = "^0.19.0", extras = ["python-legacy"] }
markdown-include = "^0.7.0"
[tool.poetry.group.aiosql.dependencies]
aiosql = "^6.5"
setuptools = "^65.5.0"
[tool.pytest.ini_options]
testpaths = "tests"
filterwarnings = [
"error",
]
addopts = '''
--strict-markers
--tb=short
--cov=edgeql_queries
--cov=tests
--cov-branch
--cov-report=term-missing
--cov-report=html
--cov-report=xml
--no-cov-on-fail
--cov-fail-under=100
--asyncio-mode=auto
'''
[tool.coverage.report]
precision = 2
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"raise NotImplemented",
]
[tool.mypy]
disallow_untyped_defs = true
strict_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = "aiosql"
ignore_missing_imports = true
[tool.isort]
profile = "black"
src_paths = ["edgeql_queries", "tests"]
combine_as_imports = true
[tool.black]
target_version = ['py38']
include = '\.pyi?$'
exclude = '''
/(\.git/
|\.eggs
|\.hg
|__pycache__
|\.cache
|\.ipynb_checkpoints
|\.mypy_cache
|\.pytest_cache
|\.tox
|\.venv
|node_modules
|_build
|buck-out
|build
|dist
|media
|infrastructure
|templates
|locale
)/
'''
[build-system]
requires = ["poetry>=1.0"]
build-backend = "poetry.masonry.api"