Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
swh-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Antoine Lambert
swh-core
Commits
76f9ea64
Commit
76f9ea64
authored
1 year ago
by
David Douard
Browse files
Options
Downloads
Patches
Plain Diff
Apply swh-py-template v0.2.0
parent
4319f69e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.copier-answers.yml
+1
-1
1 addition, 1 deletion
.copier-answers.yml
.pre-commit-config.yaml
+10
-1
10 additions, 1 deletion
.pre-commit-config.yaml
pytest.ini
+1
-1
1 addition, 1 deletion
pytest.ini
tox.ini
+8
-11
8 additions, 11 deletions
tox.ini
with
20 additions
and
14 deletions
.copier-answers.yml
+
1
−
1
View file @
76f9ea64
# 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 core utilities
distribution_name
:
swh-core
...
...
This diff is collapsed.
Click to expand it.
.pre-commit-config.yaml
+
10
−
1
View file @
76f9ea64
...
...
@@ -42,4 +42,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
]
This diff is collapsed.
Click to expand it.
pytest.ini
+
1
−
1
View file @
76f9ea64
[pytest]
norecursedirs
=
build docs .*
asyncio_mode
=
strict
consider_namespace_packages
=
true
filterwarnings
=
ignore:.*uses
the
'db_with_data'
fixture
consider_namespace_packages
=
true
This diff is collapsed.
Click to expand it.
tox.ini
+
8
−
11
View file @
76f9ea64
...
...
@@ -7,6 +7,7 @@ envlist =
py3-{core,db,server,github}
[testenv]
usedevelop
=
true
passenv
=
PYTHONASYNCIODEBUG
extras
=
testing-core
...
...
@@ -17,17 +18,13 @@ deps =
cover:
pytest-cov
commands
=
pytest
--doctest-modules
\
--rootdir
{envsitepackagesdir}
\
slow:
--hypothesis-profile
=
slow
\
cover: --cov={envsitepackagesdir}/swh/core --cov-branch
\
core: {envsitepackagesdir}/swh/core/tests
\
db: {envsitepackagesdir}/swh/core/db/tests
\
server: {envsitepackagesdir}/swh/core/api/tests
\
github: {envsitepackagesdir}/swh/core/github/tests
\
{posargs}
# --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).
slow:
--hypothesis-profile
=
slow
\
cover: --cov=swh/core --cov-branch
\
core: swh/core/tests
\
db: swh/core/db/tests
\
server: swh/core/api/tests
\
github: swh/core/github/tests
\
{posargs}
[testenv:py3{,7,8,9,10,11,12,13},pypy3{,7,8,9,10,11,12,13}]
skip_install
=
true
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment