24 Commits

Author SHA1 Message Date
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
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
12c2e6bf42 test: remove unneeded stuff in test/__init__.py
Signed-off-by: Dan Streetman <ddstreet@canonical.com>
2021-02-02 06:25:12 -05:00
Dan Streetman
48c7130008 test: remove dep on mock, use unittest.mock instead
Signed-off-by: Dan Streetman <ddstreet@canonical.com>
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
7b2f1a713b Remove more Python 2 fallback imports 2019-09-05 09:49:41 -03: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
412afabc1c Fix maintainer 2014-12-18 21:54:52 +00:00
Dimitri John Ledkov
dae4c18c9e update_maintainer 2014-12-18 21:09:44 +00:00
Dimitri John Ledkov
522030be12 don't keep unused mocks 2014-12-15 03:47:59 +00:00
Dimitri John Ledkov
7d70b6b3a3 Dropping mox 2014-12-15 03:25:41 +00:00
Benjamin Drung
c2aa97dba2 Move devscripts.logger to ubuntutools.logger. 2013-03-19 00:18:02 +01:00
Benjamin Drung
aa96842c84 Remove trailing spaces. 2011-05-23 23:44:45 +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
2d74893dd2 Add testcase for bug #701487. 2011-04-17 16:30:09 +02:00
Benjamin Drung
b2b37159d5 Shorten names of test methods. 2011-02-08 21:49:27 +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
Benjamin Drung
ce3c2f6bee test_update_maintainer.py: Use mox. 2010-12-27 01:51:19 +01:00
Benjamin Drung
2fa20670c3 test_update_maintainer.py: Unpatch os.path.isfile after test. 2010-12-27 00:33:49 +01:00
Benjamin Drung
d7ee0af9f7 Implement testcases for update-maintainer. 2010-12-26 01:35:22 +01:00