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

Apply swh-py-template 0.1.6

parent bf3250b0
No related branches found
Tags v1.2.0
1 merge request!19Apply swh-py-template 0.1.6
Pipeline #5932 passed
# Changes here will be overwritten by Copier
_commit: v0.1.5
_commit: v0.1.6
_src_path: https://gitlab.softwareheritage.org/swh/devel/swh-py-template.git
description: Software Heritage Perfect Hash
distribution_name: swh-perfecthash
......
......@@ -10,11 +10,15 @@
__pycache__
build/
dist/
# these are symlinks created by a hook in swh-docs' main sphinx conf.py
docs/README.rst
docs/README.md
# this should be a symlink for people who want to build the sphinx doc
# without using tox, generally created by the swh-env/bin/update script
docs/Makefile.sphinx
swh/perfecthash/html
swh/perfecthash/hash.gcda
swh/perfecthash/hash.gcno
swh/perfecthash/test_hash
swh/perfecthash/test_hash.lcov
......@@ -28,6 +28,9 @@ repos:
- id: codespell
name: Check source code spelling
stages: [commit]
- id: codespell
name: Check commit message spelling
stages: [commit-msg]
- repo: local
hooks:
......
ifdef SWH_PACKAGE_DOC_TOX_BUILD
include swh-docs/Makefile.sphinx
else
include ../../swh-docs/Makefile.sphinx
endif
include Makefile.sphinx
......@@ -53,6 +53,7 @@ use_parentheses = true
ensure_newline_before_comments = true
line_length = 88
force_sort_within_sections = true
known_first_party = ['swh']
[tool.cibuildwheel]
before-all = "yum install -y wget && ./build_cmph.sh"
......
[pytest]
norecursedirs = build docs .*
asyncio_mode = strict
addopts = "--import-mode=importlib"
markers = setrlimit(*limits): Set resource limits for the current test
asyncio_mode = strict
......@@ -14,20 +14,19 @@ deps =
pytest-cov
commands =
pytest --doctest-modules \
--import-mode importlib \
--rootdir {envsitepackagesdir} \
--cov={envsitepackagesdir}/swh/perfecthash \
--cov-branch \
{envsitepackagesdir}/swh/perfecthash \
{posargs}
# --rootdir and --import-mode are required to make tests that depends
# on the test file to be a proper submodule of the swh namespace after
# migration to PEP420 (implicit namespace).
# --rootdir (with --import-mode from pytest.ini) are required to make tests
# that depends on the test file to be a proper submodule of the swh namespace
# after migration to PEP420 (implicit namespace).
[testenv:black]
skip_install = true
deps =
black==22.10.0
black==23.1.0
commands =
{envpython} -m black --check swh
......@@ -69,4 +68,4 @@ setenv =
# turn warnings into errors
SPHINXOPTS = -W
commands =
make -I {env_dir}/share/ -C docs
make -I {env_dir}/share/swh-docs -C docs
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