Valentin Lorentz
c251594a1f
Bump mypy to v0.942
2022-04-26 13:05:44 +02:00
Antoine Lambert
00f1b99ad9
pre-commit, tox: Bump black from 19.10b0 to 22.3.0
...
black is considered stable since release 22.1.0 and the version
we are currently using is quite outdated and not compatible with
click 8.1.0, so it is time to bump it to its latest stable release.
Please note that E501 pycodestyle warning related to line length
is replaced by B950 one from flake8-bugbear as recommended by black.
https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#line-length
Related to T3922
2022-04-08 15:13:41 +02:00
Antoine R. Dumont (@ardumont)
ec7838123b
Pin mypy and drop type annotations which makes mypy unhappy
...
This also drops spurious copyright headers to those files if present.
Related to T3812
2021-12-16 16:10:20 +01:00
Antoine Lambert
6f8dd5d3f2
tox: Add sphinx environments to check sane doc build
...
Enable to check package documentation can be built without producing
sphinx warnings.
The sphinx environment is designed to be used in continuous integration
in order to prevent breaking documentation build when committing changes.
The sphinx-dev environment is designed to be used inside a full swh
development environment.
Related to T3258
2021-04-28 14:05:20 +02:00
Antoine R. Dumont (@ardumont)
3bede83d0f
tox.ini: Work around build failure due to upstream release
...
This fixes the master build [1]
[1] https://jenkins.softwareheritage.org/job/DLS/job/tests/1210/console
2021-01-28 10:46:27 +01:00
Stefano Zacchiroli
4d6b99188e
tox.ini: pin black to the pre-commit version (19.10b0) to avoid flip-flops
2020-10-02 16:23:33 +02:00
Antoine R. Dumont (@ardumont)
d1ce9b0912
tox/pytest: Activate doctest-module
...
Related to D3899#96289
2020-09-10 11:47:47 +02:00
Nicolas Dandrimont
c9963d4302
Use the new names for the swh.scheduler test fixtures
2020-07-09 17:06:50 +02:00
David Douard
93a4d8b784
Enable black
...
- blackify all the python files,
- enable black in pre-commit,
- add a black tox environment.
2020-04-08 16:31:22 +02:00
Nicolas Dandrimont
5191d291da
Migrate tox.ini to extras = xxx instead of deps = .[testing]
2019-11-21 13:36:33 +01:00
Nicolas Dandrimont
0459a0bb28
Merge tox environments
2019-11-21 13:33:42 +01:00
Stefano Zacchiroli
974f80f966
typing: minimal changes to make a no-op mypy run pass
2019-10-28 15:35:21 +01:00
Antoine R. Dumont (@ardumont)
9a1314c656
tox.ini: Install ipdb dependency for development environment
2019-10-14 14:47:57 +02:00
Antoine R. Dumont (@ardumont)
2a33f43006
tox.ini: Install a py3-dev environment to ease development
...
Failing tests is less noisy in development mode.
2019-10-12 03:09:11 +02:00
Antoine R. Dumont (@ardumont)
4f30cb50e3
tox.ini: Use tests installed files instead of working directory
...
Related D2082
2019-10-09 17:35:07 +02:00
David Douard
6bf226d85d
tox: workaround to pip's inability to properly solve dependency resolution
...
This is (hopefully) a temporary fix that can be removed as soon as
https://github.com/pypa/pip/issues/6239
is fixed, probably thanks to
https://github.com/pypa/pip/issues/988
2019-05-20 17:12:31 +02:00
David Douard
428b3aca57
Add a tox file
2018-10-29 10:11:11 +01:00