forked from fedora-infra/maubot-fedora
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
35 lines (30 loc) · 766 Bytes
/
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
; SPDX-FileCopyrightText: Contributors to the Fedora Project
;
; SPDX-License-Identifier: MIT
[tox]
minversion = 3.10.0
envlist = py310,py311,black,lint
isolated_build = true
skip_missing_interpreters = true
[testenv]
passenv = HOME
skip_install = true
sitepackages = false
setenv =
PYTHONPATH = {toxinidir}{:}.
deps =
-rrequirements.txt
-rrequirements-dev.txt
commands =
pytest --cov --cov-report term-missing --cov-report xml tests/ {posargs}
[testenv:black]
commands =
black --diff --check fedora/ tests/
[testenv:lint]
commands =
ruff check fedora/ tests/
# We use Ruff instead of flake8 but configure it appropriately so it doesn’t
# complain, e.g. if it’s run via a global hook.
[flake8]
max-line-length = 100
extend-ignore = E203