File: tox.ini

package info (click to toggle)
undertime 4.3.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 704 kB
  • sloc: python: 957; makefile: 6; sh: 2
file content (36 lines) | stat: -rw-r--r-- 675 bytes parent folder | download | duplicates (2)
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
[tox]
envlist = py,flake8,black

[testenv]
# test suite expects UTC
setenv =
  TZ=UTC
extras = test
commands = pytest {posargs}

[testenv:flake8]
skip_install = true
deps = flake8
commands = flake8 undertime moonphases setup.py

[testenv:black]
skip_install = true
deps = black
commands = black --diff --check undertime moonphases setup.py

[testenv:isort]
skip_install = true
deps = isort
commands = isort . --diff --check --profile black

[testenv:mypy]
skip_install = true
deps =
  mypy
  types-dateparser
  types-termcolor
  types-python-dateutil
  types-pytz
  types-PyYAML
  types-tabulate
commands = python -m mypy --install-types --non-interactive --strict undertime