| Mike Frysinger | 5ed12ec | 2025-08-21 10:25:25 -0400 | [diff] [blame] | 1 | # Copyright (C) 2019 The Android Open Source Project |
| Mike Frysinger | 4997d1c | 2019-12-01 22:47:21 -0500 | [diff] [blame] | 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | # https://tox.readthedocs.io/ |
| 16 | |
| 17 | [tox] |
| Daniel Kutik | 45809e5 | 2023-10-17 11:48:06 +0200 | [diff] [blame] | 18 | envlist = lint, py36, py37, py38, py39, py310, py311, py312 |
| Daniel Kutik | b564416 | 2023-09-27 20:13:56 +0200 | [diff] [blame] | 19 | requires = virtualenv<20.22.0 |
| Mike Frysinger | 4997d1c | 2019-12-01 22:47:21 -0500 | [diff] [blame] | 20 | |
| Mike Frysinger | b57e633 | 2020-02-15 13:49:10 -0500 | [diff] [blame] | 21 | [gh-actions] |
| 22 | python = |
| Mike Frysinger | b57e633 | 2020-02-15 13:49:10 -0500 | [diff] [blame] | 23 | 3.6: py36 |
| 24 | 3.7: py37 |
| 25 | 3.8: py38 |
| Mike Frysinger | beea5de | 2021-03-10 22:31:41 -0500 | [diff] [blame] | 26 | 3.9: py39 |
| Daniel Kutik | f8d342b | 2022-11-25 09:24:35 +0100 | [diff] [blame] | 27 | 3.10: py310 |
| Daniel Kutik | 082487d | 2023-08-15 13:31:07 +0200 | [diff] [blame] | 28 | 3.11: py311 |
| Daniel Kutik | 45809e5 | 2023-10-17 11:48:06 +0200 | [diff] [blame] | 29 | 3.12: py312 |
| Mike Frysinger | b57e633 | 2020-02-15 13:49:10 -0500 | [diff] [blame] | 30 | |
| Mike Frysinger | 4997d1c | 2019-12-01 22:47:21 -0500 | [diff] [blame] | 31 | [testenv] |
| Daniel Kutik | 4364a79 | 2022-11-25 16:59:49 +0100 | [diff] [blame] | 32 | deps = |
| Peter Kjellerstedt | e5ae870 | 2024-08-13 20:02:55 +0200 | [diff] [blame] | 33 | -c constraints.txt |
| Gavin Mak | ea2e330 | 2023-03-11 06:46:20 +0000 | [diff] [blame] | 34 | black |
| Gavin Mak | 57cb428 | 2023-03-30 05:06:01 +0000 | [diff] [blame] | 35 | flake8 |
| Daniel Kutik | 1dbf8b4 | 2023-08-26 11:33:13 +0200 | [diff] [blame] | 36 | isort |
| Daniel Kutik | 4364a79 | 2022-11-25 16:59:49 +0100 | [diff] [blame] | 37 | pytest |
| 38 | pytest-timeout |
| Daniel Kutik | 7b3afca | 2022-11-27 08:25:37 +0100 | [diff] [blame] | 39 | commands = {envpython} run_tests {posargs} |
| Mike Frysinger | d216384 | 2020-02-15 13:44:56 -0500 | [diff] [blame] | 40 | setenv = |
| 41 | GIT_AUTHOR_NAME = Repo test author |
| 42 | GIT_COMMITTER_NAME = Repo test committer |
| 43 | EMAIL = repo@gerrit.nodomain |
| Daniel Kutik | 4364a79 | 2022-11-25 16:59:49 +0100 | [diff] [blame] | 44 | |
| Gavin Mak | 1604cf2 | 2023-03-11 04:35:22 +0000 | [diff] [blame] | 45 | [testenv:lint] |
| 46 | skip_install = true |
| 47 | deps = |
| Peter Kjellerstedt | e5ae870 | 2024-08-13 20:02:55 +0200 | [diff] [blame] | 48 | -c constraints.txt |
| Gavin Mak | 1604cf2 | 2023-03-11 04:35:22 +0000 | [diff] [blame] | 49 | black |
| 50 | flake8 |
| 51 | commands = |
| Peter Kjellerstedt | 1c53b0f | 2024-08-13 20:21:07 +0200 | [diff] [blame] | 52 | black --check {posargs:. repo run_tests release/update-hooks release/update-manpages} |
| Gavin Mak | 1604cf2 | 2023-03-11 04:35:22 +0000 | [diff] [blame] | 53 | flake8 |
| 54 | |
| 55 | [testenv:format] |
| 56 | skip_install = true |
| 57 | deps = |
| Peter Kjellerstedt | e5ae870 | 2024-08-13 20:02:55 +0200 | [diff] [blame] | 58 | -c constraints.txt |
| Gavin Mak | 1604cf2 | 2023-03-11 04:35:22 +0000 | [diff] [blame] | 59 | black |
| 60 | flake8 |
| 61 | commands = |
| Peter Kjellerstedt | 1c53b0f | 2024-08-13 20:21:07 +0200 | [diff] [blame] | 62 | black {posargs:. repo run_tests release/update-hooks release/update-manpages} |
| Gavin Mak | 1604cf2 | 2023-03-11 04:35:22 +0000 | [diff] [blame] | 63 | flake8 |