Skip to content
This repository was archived by the owner on Mar 13, 2024. It is now read-only.

Commit d1640a2

Browse files
authored
Merge pull request #5 from dls-controls/dev
Changes from merging to pvi module
2 parents a6e3fd5 + 1fd609e commit d1640a2

File tree

5 files changed

+20
-8
lines changed

5 files changed

+20
-8
lines changed

.github/workflows/code.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Code CI
33
on:
44
push:
55
branches:
6+
# Restricting to these branches and tags stops duplicate jobs on internal
7+
# PRs but stops CI running on internal branches without a PR. Delete the
8+
# next 5 lines to restore the original behaviour
69
- master
710
- main
811
tags:

.github/workflows/docs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ jobs:
1919
if: startsWith(github.ref, 'refs/tags')
2020
run: sleep 60
2121

22+
- name: Install Packages
23+
# Can delete this if you don't use graphviz in your docs
24+
run: sudo apt-get install graphviz
25+
2226
- name: Build docs
2327
uses: dls-controls/pipenv-run-action@v1
2428
with:

CHANGELOG.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ All notable changes to this project will be documented in this file.
66
The format is based on `Keep a Changelog <https://keepachangelog.com/en/1.0.0/>`_,
77
and this project adheres to `Semantic Versioning <https://semver.org/spec/v2.0.0.html>`_.
88

9-
.. note::
10-
11-
This is a template changelog to be inherited by projects using this skeleton
12-
module. The changelog for the skeleton module is the list of `closed pull requests
13-
<https://github.com/dls-controls/dls-python3-skeleton/pulls?q=is%3Apr+is%3Aclosed>`_
9+
Note
10+
----
1411

12+
This is a template changelog to be inherited by projects using this skeleton
13+
module. The changelog for the skeleton module is the list of `closed pull requests
14+
<https://github.com/dls-controls/dls-python3-skeleton/pulls?q=is%3Apr+is%3Aclosed>`_
1515

1616
`Unreleased <../../compare/0.2...HEAD>`_
1717
----------------------------------------

setup.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ extend-ignore =
6969
addopts =
7070
--tb=native -vv --doctest-modules --doctest-glob="*.rst"
7171
--cov=dls_python3_skeleton --cov-report term --cov-report xml:cov.xml
72+
# https://iscinumpy.gitlab.io/post/bound-version-constraints/#watch-for-warnings
73+
filterwarnings = error
7274

7375
[coverage:run]
7476
# This is covered in the versiongit test suite so exclude it here

src/dls_python3_skeleton/_version_git.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717

1818
def get_version_from_git(path=None):
19-
"""Try to parse version from git describe, fallback to git archive tags"""
19+
"""Try to parse version from git describe, fallback to git archive tags."""
2020
tag, plus, suffix = "0.0", "untagged", ""
2121
if not GIT_SHA1.startswith("$"):
2222
# git archive or the cmdclasses below have filled in these strings
@@ -61,8 +61,11 @@ def get_version_from_git(path=None):
6161

6262

6363
def get_cmdclass(build_py=None, sdist=None):
64-
"""Create cmdclass dict to pass to setuptools.setup that will write a
65-
_version_static.py file in our resultant sdist, wheel or egg"""
64+
"""Create cmdclass dict to pass to setuptools.setup.
65+
66+
Create cmdclass dict to pass to setuptools.setup which will write a
67+
_version_static.py file in our resultant sdist, wheel or egg.
68+
"""
6669
if build_py is None:
6770
from setuptools.command.build_py import build_py
6871
if sdist is None:

0 commit comments

Comments
 (0)