File: tox.ini

package info (click to toggle)
python-imapclient 3.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 668 kB
  • sloc: python: 5,355; sh: 14; makefile: 11
file content (42 lines) | stat: -rw-r--r-- 823 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
[tox]
skipsdist = True
minversion = 3.0
envlist=py37,py38,py39,py310,py311,black,isort,flake8,mypy,pylint

[testenv]
commands=python -m unittest 
deps = -r{toxinidir}/requirements-dev.txt

[testenv:black]
basepython = python3
commands =
  black {posargs} .

[testenv:flake8]
basepython = python3
commands =
  flake8 {posargs} .

[testenv:isort]
basepython = python3
commands =
  isort {posargs} .

[testenv:mypy]
basepython = python3
commands =
  mypy {posargs}

[testenv:pylint]
basepython = python3
commands =
  pylint {posargs} imapclient/

[flake8]
exclude = .git,.venv,.tox,dist,doc,*egg,build,
max-line-length = 88
# We ignore the following because we use black to handle code-formatting
# E203: Whitespace before ':'
# E501: Line too long
# W503: Line break occurred before a binary operator
ignore = E203,E501,W503