-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
48 lines (43 loc) · 1006 Bytes
/
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
# ========== black - linter options ==========
[tool.black]
line-length = 79
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
# ========== isort - import sorting linter options ==========
# https://pycqa.github.io/isort/index.html
[tool.isort]
# Use isort's default black linter profile:
# https://pycqa.github.io/isort/docs/configuration/profiles.html
profile = "black"
filter_files = true
line_length = 79 # must be to set to the same value as that in black
# ========== mypy - type checker options ==========
# Global options:
[tool.mypy]
disallow_untyped_defs = true
warn_unused_configs = true
warn_unused_ignores = true
warn_unreachable = true
# Per-module options:
[[tool.mypy.overrides]]
module = [
"requests",
"requests.adapters",
"OpenSSL",
"OpenSSL.crypto",
"OpenSSL.SSL",
]
# Ignore "missing library stubs or py.typed marker" for all the above modules
ignore_missing_imports = true