Commits on Source (44)
-
Stefano Zacchiroli authored57400588
-
vlorentz authored845b5d8c
-
vlorentz authoredb81d0c98
-
Antoine Lambert authored
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
1b2b6f33 -
Antoine R. Dumont authored
-
vlorentz authorede1dc2d1c
-
Antoine R. Dumont authored
The target is kept so it's still usable if needed. It's dropped from the publish build as this creates problem otherwise. Related to T3665
-
Antoine R. Dumont authored
This also drops spurious copyright headers to those files if present. Related to T3812
-
Antoine R. Dumont authored
Related to D6967
-
Antoine R. Dumont authored
This fixes the warning about the archive.softwareheritage.org link in the markdown. ``` 09:45:50 Warning, treated as error: 09:45:50 /var/lib/jenkins/workspace/DFUSE/tests-on-diff/docs/tutorial.md:85:hardcoded link 'https://archive.softwareheritage.org/api/' could be replaced by an extlink (try using ':swh_web:`api/`' instead) ```
-
Antoine Lambert authored
To install the new hook: $ pre-commit install -t commit-msg
270f9f31 -
Antoine Lambert authored
Due to test modules being copied in subdirectories of the build directory by setuptools, it makes pytest fail by raising ImportPathMismatchError exceptions when invoked from root directory of the module. So ignore the build folder to discover tests.
3235f05c -
Antoine R. Dumont authored
This changes the deprecated :show-nested: instruction to the :nested: one [1]. This also fixes warning about misindented block [2]. [1] https://sphinx-click.readthedocs.io/en/latest/usage/#directive-click [2] ``` 06:22:34 swh fs mount:1:Unexpected indentation. 06:22:34 make: *** [../../swh-docs/Makefile.sphinx:32: sphinx/html] Error 2 ```
-
Antoine Lambert authored
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
8c1f8a0d -
Antoine Lambert authored
Related to T3922
82ad1d6e -
Antoine Lambert authoreda69f9f9b
-
Antoine Lambert authored
That hook can be frustrating as it can discard a long commit message if it finds a typo in it so better removing it.
4b673448 -
vlorentz authored1932e3b4
-
Pratyush authored18ae8e9f
-
David Douard authored
- 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).
d03a8ebb -
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. Also include them the proper sphinx way. Related to T4496
92781a65 -
Antoine Lambert authored
-
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.
-
Jérémy Bobbio (Lunar) authored
Related to swh/meta#4959
-
Antoine Lambert authored
Related to swh/meta#4960
-
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. Tested in swh/devel/swh-py-template!27
-
Antoine Lambert authored
That function from swh.core.config was removed in swh/devel/swh-core@2663c0a4.
-
David Douard authored
It now needs types-click which is indeed a dependency of swh.core[testing].
-
Jérémy Bobbio (Lunar) authored
`docs/images/arch-container.pdf` and `docs/images/arch-context.pdf` now get included in `sdist` tarballs.
-
David Douard authored
-
David Douard authored
and exclude api_data.py file from codespell in pre-commit; it's full of stuff codespell fail to check.
-
David Douard authored
-
Antoine Lambert authored
Related to swh/meta#5075.
-
David Douard authored
Also remove direct dependency on requests, should not be an issue any more.
-
David Douard authored
-
Antoine Lambert authored
-
Antoine Lambert authored3e7506fd
-
Antoine Lambert authored
Replace pyfuse3_asyncio by pyfuse3.asyncio module introduced in pyfuse3 3.4.0
-
Antoine Lambert authored
Bump development tools: mypy, codespell, isort, ... Move all tools configuration in pyproject.toml. Remove no longer needed mypy overrides.
-
Antoine Lambert authored
-
Martin Kirchgessner authored
This abstracts methods needed for * folder structure creation, behind `GraphBackend`, and * BLOB access, behind `ObjBackend`. Former methods have been bundled in `WebApiBackend`, which implements both interfaces. This MR also introduces a new `GraphBackend`: `CompressedGraphBackend`. It can be enabled via configuration. It's accessed and tested via its gRPC interface - tests rely directly on data in `swh.graph`. Existing tests have been moved to `tests/graph`. I also changed the `fuse_mntdir` fixture so it starts FUSE as a thread instead of a sub-process. That way, we can see its log and exceptions' stacktraces if needed, which happens often as that FUSE process is what we're actually testing. The implementation is as robust as possible against the variation of data available at all nodes/edges, while keeping the possibility to plug different backends.
-
Martin Kirchgessner authored
because we can also `cat mnt/archive/1:swh:cnt:1235...` !
963621bf -
Martin Kirchgessner authored21e2db58
-
Martin Kirchgessner authored
Showing
- .copier-answers.yml 11 additions, 0 deletions.copier-answers.yml
- .git-blame-ignore-revs 3 additions, 0 deletions.git-blame-ignore-revs
- .gitignore 8 additions, 4 deletions.gitignore
- .pre-commit-config.yaml 49 additions, 43 deletions.pre-commit-config.yaml
- CODE_OF_CONDUCT.md 1 addition, 1 deletionCODE_OF_CONDUCT.md
- MANIFEST.in 0 additions, 5 deletionsMANIFEST.in
- README.rst 34 additions, 1 deletionREADME.rst
- README.rst 34 additions, 1 deletionREADME.rst
- docs/Makefile 2 additions, 2 deletionsdocs/Makefile
- docs/README.rst 1 addition, 34 deletionsdocs/README.rst
- docs/README.rst 1 addition, 34 deletionsdocs/README.rst
- docs/cli.rst 1 addition, 1 deletiondocs/cli.rst
- docs/configuration.rst 42 additions, 17 deletionsdocs/configuration.rst
- docs/images/Makefile 1 addition, 2 deletionsdocs/images/Makefile
- docs/index.rst 9 additions, 1 deletiondocs/index.rst
- docs/tutorial.md 0 additions, 260 deletionsdocs/tutorial.md
- docs/tutorial.rst 278 additions, 0 deletionsdocs/tutorial.rst
- mypy.ini 0 additions, 27 deletionsmypy.ini
- pyproject.toml 79 additions, 1 deletionpyproject.toml
- pytest.ini 0 additions, 2 deletionspytest.ini
.copier-answers.yml
0 → 100644
.git-blame-ignore-revs
0 → 100644
MANIFEST.in
deleted
100644 → 0
README.rst
deleted
120000 → 0
README.rst
0 → 100644
docs/README.rst
deleted
100644 → 0
docs/README.rst
0 → 120000
docs/tutorial.md
deleted
100644 → 0
docs/tutorial.rst
0 → 100644
mypy.ini
deleted
100644 → 0
pytest.ini
deleted
100644 → 0