-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
47 lines (39 loc) · 1015 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
36
37
38
39
40
41
42
43
44
45
46
47
; SPDX-FileCopyrightText: Contributors to the Fedora Project
;
; SPDX-License-Identifier: MIT
[tox]
minversion = 3.10.0
envlist = black,lint,mypy
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 --cov-report html -vv tests/ {posargs}
[testenv:black]
commands =
black --diff --check pagure_notifications/
[testenv:lint]
commands =
ruff check pagure_notifications/
[testenv:mypy]
commands =
mypy {posargs} pagure_notifications/
# 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
# build the release notes with towncrier.
# Usage:
# `tox -e changelog -- --version 0.2.0`
[testenv:changelog]
commands =
towncrier build {posargs}