summaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorGavin Mak <gavinmak@google.com>2023-03-11 04:35:22 +0000
committerLUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-03-20 20:37:24 +0000
commit1604cf255f8c1786a23388db6d5277ac7949a24a (patch)
tree4bb894bb16fb4a6c65c21335ba14c6ab2a27887a /tox.ini
parent75eb8ea9354cfcecfaf185a37a10ad2c8b4cd0d2 (diff)
downloadgit-repo-1604cf255f8c1786a23388db6d5277ac7949a24a.tar.gz
Make black with line length 80 repo's code style
Provide a consistent formatting style and tox commands to lint and format. Bug: b/267675342 Change-Id: I33ddfe07af8473f4334c347d156246bfb66d4cfe Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/362954 Reviewed-by: Josip Sokcevic <sokcevic@google.com> Reviewed-by: Mike Frysinger <vapier@google.com> Tested-by: Gavin Mak <gavinmak@google.com> Commit-Queue: Gavin Mak <gavinmak@google.com>
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini20
1 files changed, 19 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 9a8b3fc9..8d3cc43c 100644
--- a/tox.ini
+++ b/tox.ini
@@ -15,7 +15,7 @@
15# https://tox.readthedocs.io/ 15# https://tox.readthedocs.io/
16 16
17[tox] 17[tox]
18envlist = py36, py37, py38, py39, py310 18envlist = lint, py36, py37, py38, py39, py310
19 19
20[gh-actions] 20[gh-actions]
21python = 21python =
@@ -35,5 +35,23 @@ setenv =
35 GIT_COMMITTER_NAME = Repo test committer 35 GIT_COMMITTER_NAME = Repo test committer
36 EMAIL = repo@gerrit.nodomain 36 EMAIL = repo@gerrit.nodomain
37 37
38[testenv:lint]
39skip_install = true
40deps =
41 black
42 flake8
43commands =
44 black --check {posargs:.}
45 flake8
46
47[testenv:format]
48skip_install = true
49deps =
50 black
51 flake8
52commands =
53 black {posargs:.}
54 flake8
55
38[pytest] 56[pytest]
39timeout = 300 57timeout = 300