- Feb 13, 2025
-
-
Antoine Lambert authored
-
Antoine Lambert authored
-
Antoine Lambert authored
Bump black to 25.1.0. Bump mypy to 1.15.0. Bump flake8-bugbear to 24.12.12 Bump codespell to 2.4.1 Bump isort to 6.0.0 Bump pre-commit-hooks to 5.0.0
-
Antoine Lambert authored
-
- Sep 17, 2024
-
-
Renaud Boyer authored
-
- Aug 27, 2024
-
-
David Douard authored
This is needed to make black 24.8 and flake8 play nicely with each other, see https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#e701-e704
-
David Douard authored
-
David Douard authored
Make sure black generate code that is compatible with all these versions.
-
David Douard authored
-
David Douard authored
-
- Mar 15, 2024
-
-
Nicolas Dandrimont authored
In combination with the Pytest 8.1 changes for namespace package support, this allows us to get rid of the envsitepackagesdir hacks, which makes the output of all tools much more useful.
-
- Mar 13, 2024
-
-
Antoine Lambert authored
Add a pre-push git hook checking with twine tool if swh package can be successfully uploaded on PyPI when pushing an annotated release tag.
-
David Douard authored
In our tests, we are using some patterns that are not supported by the `importlib` mode, like importing test modules from one another. So switch back to the default `prepend` mode, but add the `consider_namespace_packages` option that was introduced in pytest 8.1 so our `swh` namespace package gets properly detected as such. For reference, see: https://docs.pytest.org/en/latest/reference/reference.html#confval-consider_namespace_packages (commit message from Lunar's fix in swh-alter).
-
- Feb 05, 2024
-
-
Antoine Lambert authored
Related to swh/meta#5075.
-
- Dec 01, 2023
-
-
David Douard authored
The idea is to add the location where swh-docs will install the Makefile.sphinx directly as search path for the makefile when building the sphinx documentation in tox. With the modification of docs/Makefile to replace: include swh-docs/Makefile.sphinx by: include Makefile.sphinx this allows to have all the doc building scenarios working relatively easily, without the need for adding ../..[...] paths here and there. It should work ok when building: - the whole doc from the swh-docs repo using the sphinx tox env; in this scenario, all the swh packages are installed from pypi and the location where to find this Makefile.sphinx if provided to the make command in tox (-I). - the whole doc from the swh-docs repo using the sphinx-dev tox env; here, all the swh package source repositories are expected to be in the parent directory (swh-environment), and the Makefile.sphinx (included in all swh-xxx/docs/Makefile) will be found thanks to the -I argument of the make commande in the tox file. - the doc for a specific swh package using tox; the tox file also set the -I option to the correct location where to find this Makefile.sphinx file. - the doc for a specific swh package directly using the make command from a venv; here, either the user needs to put the -I option to the make command, or simply add a symlink to the swh-docs/Makefile.sphinx in swh-xxx/docs; this should be done automatically by swh-encvironment/bin/update script.
-
David Douard authored
and document why this and the README files are in the gitignore file.
-
David Douard authored
-
This was used in swh-loader-metadata.
-
Antoine Lambert authored
-
- Nov 30, 2023
-
-
Antoine Lambert authored
As the swh/__init__.py file was removed in swh packages, isort no longer detects swh.* packages being in the first party category but in third party one. So ensure to restore previous behavior by adding 'swh' in the known_first_party isort option.
-
- Nov 22, 2023
-
-
David Douard authored
- remove the (mostly) useless sphinx-dev env - install swh.docs in non-editable mode, and - use the Makefiles provided by swh.docs as non-package data (in share/) instead of depending on the swh.docs sources to be available somewhere nearby.
-
David Douard authored
Seems it is actually still needed...
-
- Nov 21, 2023
-
-
David Douard authored
-
David Douard authored
-
David Douard authored
Fix a mixed up have_cli / have_workers in the pyproject jinja template.
-
David Douard authored
-
- Nov 20, 2023
-
-
David Douard authored
Remove `usedevelop=true` options; these are not needed and can generate a build error on some swh packages.
-
- Nov 16, 2023
-
-
David Douard authored
This is handled in swh-docs directly.
-
David Douard authored
Make black and isort run before flake8 so that black can fix style issues before flake check for these.
-
David Douard authored
and add a test file to be able to run pytest. These tox environments will create a test swh project from the template and run the corresponding test from the generated project. It's not very pretty, but...
-
David Douard authored
This adds a tox file which simply runs the `copier copy` command; no other validation is made so far.
-
David Douard authored
See the README file.
-
- Jul 07, 2023
-
-
David Douard authored
It now needs types-click which is indeed a dependency of swh.core[testing].
-
- Feb 23, 2023
-
-
Jérémy Bobbio (Lunar) authored
GitLab will display the content of the README file when browsing the repository. But in case the file is a symlink, it will display the path pointed by the symlink. There is a 6 year old issue about this: https://gitlab.com/gitlab-org/gitlab/-/issues/15093 We can workaround the issue by having the content at the root of the repository and a symlink to this file in the `docs/` directory.
-
- Feb 17, 2023
-
-
Antoine Lambert authored
Related to swh/meta#4960
-
- Feb 16, 2023
-
-
Jérémy Bobbio (Lunar) authored
Related to swh/meta#4959
-
- Feb 13, 2023
-
-
Jérémy Bobbio (Lunar) authored
`swh-foo` is used through the template as our example module name. The documentation template used `swh-py-template` instead. Let’s use `swh-foo` here as well so template users can look for the string `foo` until they have customized everything.
-
Jérémy Bobbio (Lunar) authored
- Switch from Phrabricator to GitLab. - Update pre-commit dependencies. - Update copyright years.
-
- Feb 02, 2023
-
-
Antoine Lambert authored
This fixes python 3.7 support due to poetry, a dependency of isort, that removed support for that Python version in a recent release.
-
- Dec 19, 2022
-
-
Antoine Lambert authored
In order to remove warnings about /apidoc/*.rst files being included multiple times in toc when building full swh documentation, prefer to include module indices only when building standalone package documentation. Related to T4496
-