-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
114 lines (99 loc) · 2.03 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
[metadata]
name = plurk.py
version = 0.0.3
author = James Chien
author_email = shc261392@gmail.com
description = An unofficial Plurk API 2.0 SDK for Python 3.8+.
long_description = file: README.md
long_description_content_type = text/markdown
keywords = plurk, oauth
url = https://github.com/shc261392/plurk.py
classifiers =
Development Status :: 4 - Beta
License :: OSI Approved :: MIT License
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
[options]
package_dir=
=src
zip_safe = True
python_requires = >=3.8
packages = find:
install_requires =
authlib
httpx
pydantic
[options.packages.find]
where = src
exclude = docs tests
[options.extras_require]
tests =
tox
docs =
sphinx
[coverage:run]
branch = True
source = plurk
[coverage:paths]
source =
src
.tox/*/site-packages
[pylint.message_control]
disable=
broad-except,
import-error,
invalid-name,
line-too-long,
missing-module-docstring,
missing-class-docstring,
missing-function-docstring,
too-few-public-methods,
too-many-public-methods,
too-many-arguments,
duplicate-code,
[flake8]
max-line-length = 120
max-complexity = 10
exclude = .git,__pycache__,__init__.py,.mypy_cache,.pytest_cache,venv,.venv
[tox:tox]
envlist=
py37, py38, py39,py310, flake8, pylint, bandit
[testenv]
deps =
coverage
pytest
pytest-asyncio
pytest-mock
pytest-httpx
pydantic_factories
-r {tox_root}/requirements.txt
commands =
coverage run -p -m pytest tests
[testenv:test]
description = run the test suite with pytest
[testenv:report]
deps = coverage
skip_install = true
commands =
coverage combine
coverage report -m
coverage html
[testenv:flake8]
skip_install = true
deps =
flake8
commands =
flake8 {tox_root}/src --statistics --count --show-source
[testenv:pylint]
skip_install = true
deps =
pylint
commands =
pylint src
[testenv:bandit]
skip_install = true
deps =
bandit
commands =
bandit -r src