Benjamin Drung
4449cf2437
Fix warnings found by pylint
...
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
2023-01-31 15:51:29 +01:00
Benjamin Drung
f6fde2e217
fix: Use lazy % formatting in logging functions
...
pylint complains about W1201: Use lazy % formatting in logging functions
(logging-not-lazy) and W1203: Use lazy % formatting in logging functions
(logging-fstring-interpolation).
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
2023-01-31 11:13:07 +01:00
Benjamin Drung
b1bc7e1cdc
Address pylint complaints
...
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
2023-01-30 23:10:31 +01:00
Benjamin Drung
3354b526b5
style: Format Python code with black
...
```
PYTHON_SCRIPTS=$(grep -l -r '^#! */usr/bin/python3$' .)
black -C -l 99 . $PYTHON_SCRIPTS
```
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
2023-01-30 19:45:36 +01:00
Krytarik Raido
a1b56ac31f
merge-changelog: Fix setting of newlines.
...
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
2021-09-08 19:44:15 +02:00
Dan Streetman
0eeb93ee0c
logging: update ubuntutools.getLogger() to output to stdout/stderr correctly
...
Python logging by default sends all output to stderr, but that's not what
normal programs usually do and is not expected for these scripts.
Change the ubuntutools.getLogger() method to return a logger with handlers
correctly set up to send INFO level (or lower) logs to stdout and WARNING
level (or higher; technically INFO+1 level or higher) logs to stderr.
This results in normally logged output going to stdout and warnings/errors
going to stderr, as expected.
2021-02-02 06:25:12 -05:00
Dan Streetman
90e8fe81e1
replace ubuntutools.logger with standard python logging
2019-11-25 10:10:06 -05:00
Stefano Rivera
454737b5bf
Rewrite merge-changelog using python3-debian
2019-09-11 12:14:08 -03:00
Stefano Rivera
3d345113cc
Use python3-debian's Version class in merge-changelog, to support Python 3.
2019-09-04 19:24:44 -03:00
Benjamin Drung
cc7170eccb
Fix all flake8 issues
2017-05-01 00:20:03 +02:00
Benjamin Drung
b09ddfee2f
Make pylint happier.
2010-12-27 21:54:31 +01:00
Benjamin Drung
c19ff094b1
Make pylint a little bit happier.
2010-12-27 16:54:23 +01:00
Stefano Rivera
c6a82f8bc1
merge-changelog: Return non-zero when arguments don't parse.
2010-12-22 19:48:50 +02:00
Stefano Rivera
c4de897e2a
404main, merge-changelog, pull-debian-debdiff, pull-debian-source:
...
Return 0 after showing help.
2010-12-22 16:53:58 +02:00
Benjamin Drung
1943df29eb
Remove all trailing spaces.
2010-12-03 00:06:43 +01:00
Stefano Rivera
e55766b0d9
hugdaylist, manage-credentials, massfile, merge-changelog,
...
ubuntutools/requestsync/common.py: Some pyflakes-induced cleanup.
2010-09-22 11:29:14 +02:00
Michael Bienia
0ee66adc16
[ Ryan Kavanagh ]
...
* Added the merge-changelog script from
https://lists.ubuntu.com/archives/ubuntu-x/2009-June/000586.html for those
who need to manually merge packages.
* Fixed typo in doc/grab-merge.1
2010-04-08 13:30:49 +02:00
Ryan Kavanagh
e6a7d63ae0
Switched merge_changelog to merge-changelog
2010-02-15 16:34:10 -05:00