forked from poppyred/python-consul2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
62 lines (52 loc) · 1.43 KB
/
pyproject.toml
File metadata and controls
62 lines (52 loc) · 1.43 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
[build-system]
requires = ['poetry-core>=1.5.1,<2']
build-backend = 'poetry.core.masonry.api'
[tool.poetry]
name = 'consul'
version = '1.0.0'
description = 'Python client for Consul (http://www.consul.io/)'
authors = ['yan.gao <373251686@qq.com>']
repository = 'https://forgejo.pyn.ru/hhru/python-consul2'
homepage = 'https://forgejo.pyn.ru/hhru/python-consul2'
readme = 'README.rst'
[tool.poetry.dependencies]
python = '>=3.9'
packaging = ">=21.0"
requests = '*'
six = '>=1.4'
aiohttp = '>=3.8.3'
[tool.poetry.group.test.dependencies]
pytest = '8.3.3'
pytest-asyncio = '0.24.0'
ruff = '0.6.9'
[tool.pytest.ini_options]
addopts = '''
--tb native
--asyncio-mode=auto
-p no:warnings
'''
[tool.ruff]
line-length = 120
target-version = 'py312'
[tool.ruff.format]
quote-style = 'single'
[tool.ruff.lint.flake8-quotes]
inline-quotes = 'single'
[tool.ruff.lint]
select = [
'F','E','W','I','UP','YTT','ASYNC','A','COM','C4',
'T10','DJ','EXE','FA','ISC','ICN','INP','PIE','T20','Q','RSE','SLOT',
'TID','TCH','INT','FIX','ERA','PGH','PL','NPY','PERF','FURB','LOG'
]
ignore = [
'PLW', 'PLR', 'ASYNC110', 'TCH001',
'RSE102','TCH003','TCH002',
'COM812', 'ISC001', 'FIX002', 'UP031'
]
[tool.ruff.lint.per-file-ignores]
'tests/**/*.py' = [
'S101', # asserts allowed in tests
'PLR2004', # Magic value used in comparison
'S311', # Standard pseudo-random generators are not suitable for cryptographic purposes
'E722','ERA001',
]