-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
125 lines (109 loc) · 2.19 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
125
[metadata]
name = openaiapi
version = 0.0.2
description = A light wrapper around the OpenAI API using apiron
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/daneah/openaiapi
author = Dane Hillard
author_email = "Dane Hillard" <github@danehillard.com>
license = MIT License
license_files = LICENSE
classifiers =
License :: OSI Approved :: MIT License
[options]
python_requires = >=3.9
package_dir =
=src
packages = find_namespace:
include_package_data = True
install_requires =
apiron>=7.0.0
urllib3>=1.26.13,<3
[options.packages.find]
where = src
exclude =
test*
######################
# Tool configuration #
######################
[mypy]
python_version = 3.10
warn_unused_configs = True
show_error_context = True
pretty = True
namespace_packages = True
check_untyped_defs = True
[flake8]
max-line-length = 120
[tool:pytest]
testpaths = test
addopts = --cov --strict-markers
xfail_strict = True
[coverage:run]
source = openaiapi
branch = True
[coverage:report]
fail_under = 100.0
show_missing = True
skip_covered = True
[coverage:paths]
source =
src/openaiapi
**/site-packages/openaiapi
[tox:tox]
envlist = py39,py310,py311
isolated_build = True
[testenv]
deps =
pytest
pytest-cov
pytest-randomly
commands =
pytest {posargs}
[testenv:typecheck]
deps =
mypy
pytest
commands =
mypy {posargs:src test}
[testenv:format]
skip_install = True
deps =
black
commands =
black {posargs:--check --diff src test}
[testenv:lint]
skip_install = True
deps =
flake8
flake8-bugbear
commands =
flake8 {posargs:src test}
[testenv:docs]
deps =
furo
sphinx
commands =
sphinx-apidoc \
--force \
--implicit-namespaces \
--module-first \
--separate \
-o docs/reference/ \
src/openaiapi/
sphinx-build -W --keep-going -b html docs/ {posargs:docs/_build/}
[testenv:devdocs]
deps =
furo
sphinx
sphinx-autobuild
commands =
sphinx-apidoc \
--force \
--implicit-namespaces \
--module-first \
--separate \
-o docs/reference/ \
src/openaiapi/ \
sphinx-autobuild -W -b html docs/ docs/_build/