Skip to content
Snippets Groups Projects
Commit 6ec97ec7 authored by David Douard's avatar David Douard
Browse files

Apply swh-py-template v0.2.0

parent 1c0a615f
No related branches found
No related tags found
No related merge requests found
# Changes here will be overwritten by Copier
_commit: v0.1.6
_commit: v0.2.0
_src_path: https://gitlab.softwareheritage.org/swh/devel/swh-py-template.git
description: Software Heritage Documentation
distribution_name: swh-docs
......
......@@ -45,3 +45,13 @@ repos:
pass_filenames: false
language: system
types: [python]
- id: twine-check
name: twine check
description: call twine check when pushing an annotated release tag
entry: bash -c "ref=$(git describe) &&
[[ $ref =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] &&
(python3 -m build --sdist && twine check $(ls -t dist/* | head -1)) || true"
pass_filenames: false
stages: [pre-push]
language: python
additional_dependencies: [twine, build]
[pytest]
norecursedirs = build docs .*
asyncio_mode = strict
addopts = "--import-mode=importlib"
consider_namespace_packages = true
pytest
pytest >= 8.1
types-tabulate
......@@ -7,7 +7,7 @@ envlist =
py3
[testenv]
basepython = python3
usedevelop = true
passenv =
SPHINXOPTS
SPHINXOPTCOLOR
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment