Benjamin Drung
d7362d9ed8
Use Python f-strings
...
```
flynt -ll 99 -tc -tj -a pbuilder-dist pm-helper running-autopkgtests ubuntu-build ubuntutools
```
2024-11-02 17:49:20 +01:00
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
069a6926c0
Implement conventions found by pylint
...
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
2023-01-31 17:28:33 +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
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
Logan Rosen
bc24ef23de
sponsor-patch: fix bugs from py3 migration
2021-02-22 22:24:52 -05:00
Stefano Rivera
301569e809
Pull out Python 2 support hacks
2019-09-04 19:24:44 -03:00
Stefano Rivera
7c0efe2914
Port requestbackport to Python 3
2019-09-04 19:24:44 -03:00
Iain Lane
0a3738cfbc
Fix some 2/3 differences and run pylint with confidence=HIGH
...
Too many false positives otherwise.
2017-05-30 11:22:49 +01:00
Benjamin Drung
cc7170eccb
Fix all flake8 issues
2017-05-01 00:20:03 +02:00
Dimitri John Ledkov
ea74634e93
questions
2014-12-18 20:44:02 +00:00
Stefano Rivera
60e063e484
Visually separate the debdiff a little
2012-11-08 10:10:26 +02:00
Stefano Rivera
73461fca08
ubuntutools.question: Catch EOF and SIGINT on all input and bail out.
...
(LP: #1037488 )
2012-10-08 11:17:50 +02:00
Stefano Rivera
8d83b9b1de
EditBugReport: Correct typo.
2011-11-25 15:46:48 +02:00
Stefano Rivera
af440c1703
Remove all newlines from titles
2011-11-16 15:47:58 +02:00
Stefano Rivera
31e6991f24
EditBugReport: Don't include a newline in the bug title.
2011-11-16 14:31:35 +02:00
Stefano Rivera
26ff36479a
EditFile: Don't try and store temporary files in /usr/bin.
2011-11-16 13:57:27 +02:00
Stefano Rivera
697b8d6bd3
s/m/match/
2011-11-15 01:51:27 +02:00
Stefano Rivera
1a507e34b0
Whoops placeholders had incorect parity
2011-11-13 22:54:32 +02:00
Stefano Rivera
629fbd14ad
optional_edit was a silly idea
2011-11-13 20:53:39 +02:00
Stefano Rivera
f06bc5b375
Add generic file-editing support to ubuntutools.question
2011-11-13 20:14:55 +02:00
Stefano Rivera
c4c758cc17
Provide installs & removes cleanly checkboxes for each binary package
2011-11-13 02:00:06 +02:00
Benjamin Drung
2a2cd83b74
sponsor-patch: Make pylint a little bit happier.
2010-12-22 23:31:35 +01:00
Benjamin Drung
d635434a5e
backportpackage: Improve upload question.
2010-12-18 19:22:07 +01:00
Benjamin Drung
4178bf7476
ubuntutools/question.py: Create a universal Question object.
2010-12-17 18:46:09 +01:00
Benjamin Drung
fbe27a7ce4
Split objects out of sponsor-patch script.
2010-12-17 17:32:38 +01:00