File: tox.ini

package info (click to toggle)
microsocks 1.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 200 kB
  • sloc: ansic: 624; python: 427; sh: 68; makefile: 46
file content (90 lines) | stat: -rw-r--r-- 1,318 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
[tox]
envlist =
  ruff
  ruff-all
  black
  pep8
  mypy
  pylint
  functional
isolated_build = True

[defs]
pyfiles =
  python/msocktest

[testenv:ruff]
tags =
  check
deps =
  ruff >= 0.0.245, < 0.1
skip_install = True
commands =
  ruff check --config {toxinidir}/.config/ruff-most/pyproject.toml {[defs]pyfiles}

[testenv:ruff-all]
tags =
  check
deps =
  ruff == 0.0.245
skip_install = True
commands =
  ruff check --config {toxinidir}/.config/ruff-all/pyproject.toml {[defs]pyfiles}

[testenv:black]
skip_install = True
tags =
  check
deps =
  black >= 23, < 24
commands =
  black --check {[defs]pyfiles}

[testenv:black-reformat]
skip_install = True
tags =
  format
  manual
deps =
  black >= 23, < 24
commands =
  black {[defs]pyfiles}

[testenv:pep8]
skip_install = True
tags =
  check
deps =
  flake8 >= 6, < 7
commands =
  flake8 {[defs]pyfiles}

[testenv:mypy]
skip_install = True
tags =
  check
deps =
  -r requirements.txt
  mypy >= 1, < 2
setenv =
  MYPYPATH={toxinidir}/stubs
commands =
  mypy {[defs]pyfiles}

[testenv:pylint]
skip_install = True
tags =
  check
deps =
  -r requirements.txt
  pylint >= 2.16, < 2.17
commands =
  pylint {[defs]pyfiles}

[testenv:functional]
tags =
  tests
deps =
  -r requirements.txt
commands =
  python3 -u -m msocktest -v -s {env:TEST_MICROSOCKS:/usr/bin/microsocks}