Merge lp:~allenap/maas/find-early-imports into lp:~maas-committers/maas/trunk
Proposed by
Gavin Panella
Status: | Merged |
---|---|
Approved by: | Gavin Panella |
Approved revision: | no longer in the source branch. |
Merged at revision: | 5487 |
Proposed branch: | lp:~allenap/maas/find-early-imports |
Merge into: | lp:~maas-committers/maas/trunk |
Diff against target: |
353 lines (+89/-53) 12 files modified
Makefile (+6/-4) src/maasserver/api/tests/test_ipaddresses.py (+4/-3) src/maasserver/forms_iprange.py (+1/-2) src/maasserver/models/migrations/create_default_storage_layout.py (+0/-9) src/maasserver/models/tests/test_template.py (+4/-6) src/maasserver/rpc/rackcontrollers.py (+2/-3) src/maasserver/urls_api.py (+4/-5) src/maasserver/utils/dns.py (+4/-5) src/maasserver/utils/tests/test_dns.py (+4/-7) src/provisioningserver/templates/commissioning-user-data/snippets/maas_api_helper.py (+5/-6) src/provisioningserver/utils/isc.py (+1/-3) utilities/find-early-imports (+54/-0) |
To merge this branch: | bzr merge lp:~allenap/maas/find-early-imports |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Blake Rouse (community) | Approve | ||
Review via email: mp+308602@code.launchpad.net |
Commit message
Check for imports that appear before __all__ and signal them as lint.
Strictly this isn't a problem for Python, it's a problem for MAAS's import formatter. Until we update it this simple script will help keep the "front matter" consistent.
Description of the change
Something I wrote over the weekend while nursing a cold and feeling sorry for myself.
To post a comment you must log in.
Looks good. Surprised that so many files had that after imports.