Compare commits

..

2 commits

Author SHA1 Message Date
4a4eb8d0e1 Add first test of .woodpecker.yml
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2022-04-17 00:05:29 +02:00
a109b47ba7 Fix some flake8 warnings 2022-04-17 00:01:18 +02:00
2 changed files with 17 additions and 2 deletions

8
.woodpecker.yml Normal file
View file

@ -0,0 +1,8 @@
pipeline:
test:
image: debian
commands:
- apt update
- apt install pylint3 python3-flake8
- python3 -m flake8 gitdch
- python3 -m pylint gitdch

11
gitdch
View file

@ -79,7 +79,9 @@ parser.add_argument(
'--version',
type=str,
dest='version',
help='Currrent version (default: autodetected using git describe --always --tags)'
help=(
'Currrent version (default: autodetected using git describe '
'--always --tags)')
)
parser.add_argument(
@ -176,7 +178,12 @@ def add_version():
tag = None
version_commit = None
version = options.version or clean_deb_version(repo.git.describe('--always', '--tags'))
version = (
options.version or
clean_deb_version(
repo.git.describe('--always', '--tags')
)
)
messages = []
for commit in repo.iter_commits():
if version_commit is None: