File: tox.ini

package info (click to toggle)
python-cotyledon 2.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 300 kB
  • sloc: python: 1,336; makefile: 16
file content (48 lines) | stat: -rw-r--r-- 779 bytes parent folder | download
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
48
[tox]
envlist = py310,py311,py312,py313,pep8,mypy
minversion = 4.0
skipsdist = true

[testenv]
deps = -e .[oslo,test]
skip_install = true
set_env =
  PYTHONUNBUFFERED=1
commands = 
   pytest {posargs:cotyledon/tests}

[testenv:pep8]
deps = ruff
       doc8
       pygments
commands =
  ruff check .
  ruff format --check .
  doc8 doc/source

[testenv:format]
deps = ruff
commands =
  ruff check --fix .
  ruff format .

[testenv:mypy]
basepython = python3.10
deps = -e .[oslo,test]
       mypy
commands = mypy {posargs}

[testenv:venv]
commands = {posargs}

[testenv:build]
deps = build
commands = python -m build

[testenv:docs]
deps = .[doc,oslo]
commands = sphinx-build -a -W -b html doc/source doc/build

[pytest]
addopts = --verbose --numprocesses=auto
norecursedirs = .tox