-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
72 lines (61 loc) · 1.54 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
[tool.poetry]
name = "redisconfig"
version = "0.1.1"
description = "Simple, robust Redis configuration for Python"
authors = ["Jeremy Carbaugh <[email protected]>", "Jason Williams <[email protected]>"]
keywords = ["redis"]
readme = "README.md"
license = "MIT"
homepage = "https://github.com/xplor/redisconfig"
repository = "https://github.com/xplor/redisconfig"
include = ["LICENSE"]
[tool.poetry.dependencies]
python = "^3.6.2"
redis = ">=3,<5"
pytest = { version = "^6.2.5", optional = true }
black = { version = "==22.3.0", optional = true }
mypy = {version = "^0.920", optional = true}
flake8 = {version = "^4.0.1", optional = true}
dataclasses = {version = "^0.8", python = "3.6"}
[tool.poetry.extras]
test = ["pytest", "black", "mypy", "flake8"]
dev = ["pytest", "black", "mypy", "flake8"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
addopts = "-v -ra"
testpaths = "tests"
[tool.mypy]
files = "redisconfig"
ignore_missing_imports = true
[tool.tox]
legacy_tox_ini = """
[env]
FORMAT_PATHS = redisconfig tests
[tox]
envlist =
py{310,39,38,37,36}-redis{3,4}
mypy
formatting
lint
skip_missing_interpreters = true
isolated_build = true
[testenv]
extras =
test
deps =
redis3: redis>=3,<4
redis4: redis>=4.0.0b1,<5
commands =
pytest
[testenv:mypy]
commands =
mypy --install-types --non-interactive
[testenv:formatting]
commands =
black --check {[env]FORMAT_PATHS}
[testenv:lint]
commands =
flake8 --ignore=E501
"""