forked from FullStackWithLawrence/aws-openai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
52 lines (45 loc) · 1.3 KB
/
tox.ini
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
# setup a basic tox environment for flake8 with the default python3.11
# environment
[tox]
envlist = py3.11,flake8
skip_missing_interpreters = true
[tool.isort]
profile = "black"
skip =venv,node_modules,api/terraform/python/lambda_openai/lambda_dist_pkg,api/terraform/python/lambda_openai/venv
[gh-actions]
python =
3.8: gitlint,py38,flake8
3.9: gitlint,py39,flake8
3.10: gitlint,py310,flake8
3.11: gitlint,py311,flake8,mypy,black,pylint
[testenv]
deps = -rrequirements.txt
commands = pytest
[testenv:flake8]
skip_install = True
deps = flake8
commands = flake8
[testenv:gitlint]
skip_install = True
deps = gitlint
commands = gitlint {posargs}
[testenv:bumpversion]
skip_install = True
passenv =
# Git can only find its global configuration if it knows where the
# user's HOME is.
HOME
# We set sign_tags in .bumpversion.cfg, so pass in the GnuPG agent
# reference to avoid having to retype the passphrase for an
# already-cached private key.
GPG_AGENT_INFO
deps = bump2version
commands = bump2version {posargs}
[testenv:pylint]
deps = pylint
commands =
pylint api/terraform/python/lambda_langchain
pylint api/terraform/python/lambda_openai
pylint api/terraform/python/lambda_openai_v2
pylint api/terraform/python/layer_genai
pylint api/terraform/python/layer_genai/openai_utils