forked from burnash/gspread
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
41 lines (35 loc) · 1.13 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
[tox]
envlist = py36,py37,py38,py39
skip_missing_interpreters = true
# Used to run tests, **do not** set GS_CREDS_FILENAME to run off-line tests
[testenv]
description = Run project test suite
passenv =
GS_RECORD_MODE
GS_CREDS_FILENAME
APPDATA
deps = -r test-requirements.txt
commands = pytest {posargs} tests/
# Used by the CI to check code format/security
[testenv:lint]
description = Run code linters
deps = -r lint-requirements.txt
commands = black --check --diff .
codespell --skip=".tox,.git,./docs/build" .
flake8 --ignore=E203 --max-complexity=10 --max-line-length=255 \
--show-source --statistics .
isort --check-only --profile black .
# Used by developers to format code, best advised to be run before commit
[testenv:format]
description = Format code
deps = -r lint-requirements.txt
commands = black .
isort --profile black .
[testenv:build]
description = Build project package
deps = setuptools
commands = python3 setup.py sdist bdist_wheel
[testenv:doc]
description = Build the documentation
deps = -r docs/requirements.txt
commands = sphinx-build -W ./docs ./docs/build