-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
129 lines (111 loc) · 2.39 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
119
120
121
122
123
124
125
126
127
128
129
[build-system]
requires = ["poetry-core>=1.6"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "certbot-dns-timeweb"
version = "1.0.1"
description = "Timeweb DNS Authenticator plugin for Certbot"
authors = ["Aleksandr Ivanov <[email protected]>"]
license = "MIT"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.10"
certbot = "^2.8"
timeweb-cloud = "^0.12.2"
tld = "^0.13"
[tool.poetry.dev-dependencies]
black = "^23.3"
isort = "^5.11"
flake8 = "^6.1"
flake8-black = "*"
flake8-pyproject = "*"
[tool.poetry.plugins."certbot.plugins"]
dns-timeweb = "certbot_dns_timeweb.authenticator:Authenticator"
[tool.black]
line-length = 120
exclude = '''
/(
# Copied from: https://github.com/psf/black/blob/master/pyproject.toml
| \.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| venv
| _build
| build
| dist
)/
'''
[tool.flake8]
# Base flake8 configuration:
# https://flake8.pycqa.org/en/latest/user/configuration.html
show-source = true
statistics = false
doctests = true
# darglint configuration:
# https://github.com/terrencepreilly/darglint
strictness = 'long'
docstring-style = 'numpy'
# Plugins:
max-complexity = 8
max-line-length = 120
max-methods = 9
# Disable some pydocstyle checks:
# Exclude some pydoctest checks globally:
ignore = 'W503'
# Due to this, Flake8 will raise E203 whitespace before ':' warnings.
# Since this warning is not PEP 8 compliant, Flake8 should be configured to ignore it
extend-ignore = 'E203'
# Excluding some directories:
exclude = [
'.git',
'__pycache__',
'.venv',
'venv',
'.eggs',
'*.egg',
]
# Ignoring some errors in some files:
per-file-ignores = [
# Enable `assert` keyword and magic numbers for tests:
'tests/*.py: S101, WPS114, WPS226, WPS432',
]
[tool.isort]
profile = 'black'
include_trailing_comma = true
use_parentheses = true
# See https://github.com/timothycrosley/isort#multi-line-output-modes
multi_line_output = 3
line_length = 120
[tool.pytest.ini_options]
# Directories that are not visited by pytest collector:
norecursedirs = [
'.git',
'.github',
'.pytest_cache',
'.tox',
'.vscode',
'.venv',
'venv',
'__pycache__',
'hooks',
'*.egg',
'.eggs',
'dist',
'build',
'docs',
]
# Extra options:
addopts = [
'--strict-markers',
'--tb=short',
'--doctest-modules',
]
testpaths = 'tests/'
python_files = 'test_*.py'
filterwarnings = [
'error',
'ignore::ImportWarning:importlib',
]