Benjamin Drung
aa556af89d
Use f-strings
...
pylint complains about C0209: Formatting a regular string which could be
a f-string (consider-using-f-string)
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
2023-01-31 19:32:58 +01:00
Benjamin Drung
444b319c12
Implement refactorings found by pylint
...
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
2023-01-31 16:58:24 +01:00
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
4e27045f49
style: Sort Python imports with isort
...
```
isort -l 99 --profile=black .
```
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
2023-01-30 21:28:47 +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
Dan Streetman
90e8fe81e1
replace ubuntutools.logger with standard python logging
2019-11-25 10:10:06 -05:00
Stefano Rivera
301569e809
Pull out Python 2 support hacks
2019-09-04 19:24:44 -03:00
Benjamin Drung
cc7170eccb
Fix all flake8 issues
2017-05-01 00:20:03 +02:00
Dimitri John Ledkov
e959384f02
update_maintainer
2014-12-18 20:57:17 +00:00
Benjamin Drung
c2aa97dba2
Move devscripts.logger to ubuntutools.logger.
2013-03-19 00:18:02 +01:00
Stefano Rivera
d692d7b79b
update-maintainer: Add a function to restore the original maintainer.
2012-05-06 19:42:39 +02:00
Stefano Rivera
2f17d27ca7
Don't use with statement in update_maintainer (breaks with StringIO). Fix regression in detecting Debian-targetted uploads
2011-09-10 10:49:14 +02:00
Stefano Rivera
29f1538d90
ubuntutools.update_maintainer: Don't use strict changelog parsing
...
(LP: #806633 )
2011-09-09 21:46:18 +02:00
Benjamin Drung
e8b3a18c45
Move suspicious-source and wrap-and-sort from ubuntu-dev-tools into devscripts.
2011-05-23 23:41:00 +02:00
Benjamin Drung
457a6c6bee
ubuntutools.update-maintainer: Do not use python-debian to parse
...
debian/control to avoid mangling this file (LP: #756373 ). The new
simplified parser has no problems with comments in debian/control
(LP: #701487 , #713827 ).
2011-04-17 16:27:16 +02:00
Benjamin Drung
3887bc06b1
update_maintainer.py: Update Maintainer field if it is set to
...
"Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>".
2011-02-22 00:42:26 +01:00
Kees Cook
6265047606
update to allow for missing rules file
2011-02-08 11:57:07 -08:00
Kees Cook
9ebaa17ad8
ubuntutools/test/test_update_maintainer.py: update test cases to
...
handle checking for debian/rules.
2011-02-08 10:28:06 -08:00
Kees Cook
df38124295
improve comment
2011-02-07 10:46:36 -08:00
Kees Cook
fd6b8cdab0
ubuntutools/update_maintainer.py: do nothing if the rules file
...
already manages XSBC-Original (e.g. python).
2011-02-07 10:43:51 -08:00
Benjamin Drung
526b7e63c6
update_maintainer.py: Process control.in first.
2011-01-25 22:09:15 +01:00
Benjamin Drung
d7ee0af9f7
Implement testcases for update-maintainer.
2010-12-26 01:35:22 +01:00
Benjamin Drung
3f3018aef2
update-maintainer: Rewrite completely using python-debian (LP: #666504 ).
2010-12-25 19:49:49 +01:00
Benjamin Drung
1054307414
control.py: Add required methods for update-maintainer.
2010-12-24 13:38:59 +01:00
Benjamin Drung
65efe55972
ubuntutools/update_maintainer.py: Fix failure if debian/control.in is a
...
directory.
2010-09-22 15:54:47 +02:00
Benjamin Drung
5e0d815405
Move update-maintainer code into library for sponsor-patch.
2010-09-19 20:24:27 +02:00