-
Notifications
You must be signed in to change notification settings - Fork 57
/
pyproject.toml
74 lines (60 loc) · 1.63 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
[tool.black]
line-length = 100
target-version = ['py36']
preview = true
[tool.isort]
skip_gitignore = true
balanced_wrapping = true
include_trailing_comma = true
py_version = 36
line_length = 100
multi_line_output = 3
use_parentheses = true
order_by_type = false
[tool.coverage.run]
source = ["multiprocessing_logging"]
[tool.mypy]
python_version = 3.6
files = "."
exclude = "build"
# Display the codes needed for # type: ignore[code] annotations.
show_error_codes = true
# Options to make the checking stricter.
# Python 2 does not allow for annotations.
#check_untyped_defs = true
#disallow_untyped_defs = true
#disallow_any_generics = true
warn_no_return = true
strict_optional = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
# We use a lot of third-party libraries we don't have stubs for, as
# well as a handful of our own modules that we haven't told mypy how
# to find. Ignore them. (For some details, see:
# `git log -p -S ignore_missing_imports mypy.ini`.)
#
# This doesn't get in the way of using the stubs we *do* have.
ignore_missing_imports = true
# Warn of unreachable or redundant code.
warn_unreachable = true
[[tool.mypy.overrides]]
module = "tasks"
# Invoke does not allow typing annotations.
disallow_untyped_defs = false
[[tool.mypy.overrides]]
module = "tests.*"
# Tests methods are low value.
disallow_untyped_defs = false
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[tool.tox]
legacy_tox_ini = """
[tox]
# pypy3 hangs.
envlist = py27, py36, py37, py38, py39, py310, pypy
isolated_build = True
[testenv]
commands = {envpython} setup.py test
"""