-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
setup.cfg
124 lines (106 loc) · 2.54 KB
/
setup.cfg
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
[metadata]
name = parfive
description = A HTTP and FTP parallel file downloader.
long_description = file: README.rst
url = https://parfive.readthedocs.io/
license = MIT
author = "Stuart Mumford"
author_email = "stuart@cadair.com"
classifiers =
Programming Language :: Python :: 3
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
[options]
python_requires = >=3.8
install_requires =
tqdm >= 4.27.0
aiohttp
setup_requires =
setuptools_scm
packages = find:
[options.entry_points]
console_scripts =
parfive = parfive.main:main
[options.extras_require]
ftp = aioftp>=0.17.1
tests =
pytest
pytest-localserver
pytest-asyncio
pytest-socket
pytest-cov
aiofiles
docs =
sphinx
sphinx-automodapi
sphinx-autodoc-typehints
sphinx-contributors
sphinx-book-theme
[flake8]
max-line-length = 100
ignore = I100,I101,I102,I103,I104,I201
[tool:pytest]
addopts = --allow-hosts=127.0.0.1,::1
asyncio_mode = strict
[isort]
profile = black
balanced_wrapping = True
skip=docs/conf.py
default_section = THIRDPARTY
include_trailing_comma = True
known_first_party = parfive
length_sort = False
length_sort_sections=stdlib
line_length = 110
multi_line_output = 3
no_lines_before = LOCALFOLDER
sections = STDLIB, THIRDPARTY, FIRSTPARTY, LOCALFOLDER
[coverage:run]
omit =
parfive/__init__*
parfive/_dev/*
parfive/*setup*
parfive/conftest.py
parfive/tests/*
parfive/version.py
*/parfive/__init__*
*/parfive/_dev/*
*/parfive/*setup*
*/parfive/conftest.py
*/parfive/tests/*
*/parfive/version.py
[coverage:report]
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain about packages we have installed
except ImportError
# Don't complain if tests don't hit assertions
raise AssertionError
raise NotImplementedError
# Don't complain about script hooks
def main\(.*\):
# Ignore branches that don't pertain to this version of Python
pragma: py{ignore_python_version}
[mypy]
plugins = pydantic.mypy
[mypy-parfive.utils]
disallow_untyped_defs = True
# Ignore the autogenerated version file
[mypy-parfive._version]
ignore_missing_imports = True
[mypy-tqdm.*]
ignore_missing_imports = True
[mypy-pytest_localserver.*]
ignore_missing_imports = True
[mypy-aioftp.*]
ignore_missing_imports = True
[mypy-aiohttp.*]
ignore_missing_imports = True
[mypy-pytest.*]
ignore_missing_imports = True
[mypy-pytest_socket.*]
ignore_missing_imports = True