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

Apply swh-py-template v0.2.0

parent b5850940
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 web UI
distribution_name: swh-web
......
......@@ -54,6 +54,16 @@ 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]
- id: eslint
name: eslint
entry: node_modules/.bin/eslint -c assets/config/.eslintrc
......
......@@ -7,7 +7,7 @@ envlist =
py3
[testenv]
use_develop = true
usedevelop = true
extras =
testing
deps =
......
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