Skip to content
This repository has been archived by the owner on Jan 14, 2021. It is now read-only.

Misc fixes #91

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from
Open

Conversation

nphilipp
Copy link
Member

@nphilipp nphilipp commented Jul 2, 2020

Based on top of #90

  • Fix printing audit reports from dicts
  • flake8: Imports
  • Don't iterate over collections using indices

pypingou and others added 7 commits June 30, 2020 11:54
Signed-off-by: Pierre-Yves Chibon <[email protected]>
Signed-off-by: Nils Philippsen <[email protected]>
Signed-off-by: Pierre-Yves Chibon <[email protected]>
- use dict, list, set literals and comprehensions where sensible
- don't build lists from generators superfluously
- don't use dict.keys(), rather the dict var itself where an iterable is
  expected
- sorted() returns a list already
- remove Python 2 compat
- use f-strings, except for logging, don't use % operator there, for
  late interpolation
- remove u-strings from comments, too

Signed-off-by: Nils Philippsen <[email protected]>
- fix order
- remove unused imports
- use unittest.mock instead of 3rd party mock
- import some oft-used objects directly rather than addressing them
  through their modules

Signed-off-by: Nils Philippsen <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants