https://forge.softwareheritage.org/source/swh-scheduler.git
Revision cdb1775f247401ec24f8bb5dac7f9f2b40005bca authored by Nicolas Dandrimont on 09 February 2021, 09:33:19 UTC, committed by Nicolas Dandrimont on 11 February 2021, 18:24:01 UTC
The built-in `max` function can take an iterable directly, no need to
reimplement it.
1 parent cf32e37
Raw File
Tip revision: cdb1775f247401ec24f8bb5dac7f9f2b40005bca authored by Nicolas Dandrimont on 09 February 2021, 09:33:19 UTC
Simplify max_date()
Tip revision: cdb1775
tox.ini
[tox]
envlist=black,flake8,mypy,py3

[testenv]
extras =
  testing
deps =
  pytest-cov
  dev: ipdb
setenv =
  LC_ALL=C.UTF-8
  LC_CTYPE=C.UTF-8
  LANG=C.UTF-8
commands =
      pytest --doctest-modules \
  !slow: --hypothesis-profile=fast \
  slow:  --hypothesis-profile=slow \
         --cov={envsitepackagesdir}/swh/scheduler \
         {envsitepackagesdir}/swh/scheduler \
         --cov-branch {posargs}

[testenv:black]
skip_install = true
deps =
  black==19.10b0
commands =
  {envpython} -m black --check swh

[testenv:flake8]
skip_install = true
deps =
  flake8
commands =
  {envpython} -m flake8

[testenv:mypy]
extras =
  testing
deps =
  mypy
commands =
  mypy swh
back to top