-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
35 lines (30 loc) · 852 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: 2023 Contributors to the Fedora Project
;
; SPDX-License-Identifier: LGPL-3.0-or-later
[tox]
envlist = py3{8,9,10,11},lint,format
minversion = 3.10.0
isolated_build = true
skip_missing_interpreters = true
[testenv]
passenv = HOME
skip_install = true
sitepackages = false
deps =
poetry>=1.2.0
commands_pre =
poetry install --all-extras
commands =
poetry run pytest -v --cov=mediawiki_messages --cov-report term-missing --cov-report html {posargs:tests/}
[testenv:lint]
commands =
poetry run ruff check mediawiki_messages tests
poetry run reuse lint
[testenv:format]
commands =
poetry run black --check --diff {posargs:.}
# 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