Antoine Lambert
edef3b850c
Apply swh-py-template v0.3.3 with copier
...
Bump development tools: mypy, codespell, isort, ...
Move all tools configuration in pyproject.toml.
Remove no longer needed mypy overrides.
2025-02-17 13:44:24 +01:00
David Douard
c6baacbcd7
Apply swh-py-template v0.2.3
2024-08-27 16:25:53 +02:00
David Douard
e6a35c55b0
Apply swh-py-template v0.2.0
2024-03-29 13:55:23 +01:00
Antoine Lambert
32be94a89b
tox: Bump mypy to 1.8.0
...
Related to swh/meta#5075 .
2024-02-05 16:14:17 +01:00
David Douard
ac52cfed21
Apply swh-py-template 0.1.6
2023-12-03 17:54:52 +01:00
Antoine Lambert
e4c707d807
pytest.ini: Ensure '--import-mode importlib' option is always used
...
Fix hanging test when executed outside tox.
2023-12-01 14:43:03 +01:00
David Douard
c2402f405f
Migrate to copier-based swh-py-template
2023-11-29 17:23:28 +01:00
Antoine Lambert
fc2bd1e937
mypy: Bump to 1.0.1 and fix new typing errors
...
Related to swh/meta#4960
2023-02-17 17:56:07 +01:00
Jérémy Bobbio (Lunar)
4ca84310eb
Update and clean tox configuration for version 4
...
Related to swh/meta#4959
2023-02-16 15:43:51 +01:00
David Douard
8778b9cdbf
pre-commit, tox: Bump pre-commit, codespell, black and flake8
...
- pre-commit from 4.1.0 to 4.3.0,
- codespell from 2.2.1 to 2.2.2,
- black from 22.3.0 to 22.10.0 and
- flake8 from 4.0.1 to 5.0.4. Also freeze flake8 dependencies.
Also change flake8's repo config to github (the gitlab mirror
being outdated).
2022-10-18 18:53:29 +02:00
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