Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-28480: Flake8 fixes (E402 import ordering). #81

Merged
merged 4 commits into from
Jan 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: lint

on:
- push
- pull_request
push:
branches:
- master
pull_request:

jobs:
lint:
Expand All @@ -13,7 +15,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.7
python-version: 3.8

- name: Install
run: pip install -r <(curl https://raw.githubusercontent.com/lsst/linting/master/requirements.txt)
Expand Down
15 changes: 8 additions & 7 deletions examples/designdoc.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import matplotlib
matplotlib.use('Agg') # noqa E402
import pylab as plt
import numpy as np
import lsst.afw.image as afwImage
import lsst.afw.detection as afwDet
import lsst.log
import matplotlib
matplotlib.use('Agg')

import lsst.afw.image as afwImage # noqa E402
import lsst.afw.detection as afwDet # noqa E402
import lsst.log # noqa E402

from .utils import footprintToImage, getExtent, get_sigma1, getFamilies, plotDeblendFamily, readCatalog
from .suprime import getSuprimeDataref
from .utils import footprintToImage, getExtent, get_sigma1, getFamilies, plotDeblendFamily, readCatalog # noqa E402
from .suprime import getSuprimeDataref # noqa E402


def main():
Expand Down
22 changes: 11 additions & 11 deletions examples/plotDeblendFamilies.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import matplotlib
matplotlib.use('Agg') # noqa E402
import numpy as np
import os
import pylab as plt

import os
import numpy as np
import matplotlib
matplotlib.use('Agg')

import lsst.daf.persistence as dafPersist
import lsst.afw.detection as afwDet
import lsst.afw.image as afwImage
import lsst.afw.table as afwTable
from lsst.meas.deblender.baseline import deblend
import lsst.daf.persistence as dafPersist # noqa E402
import lsst.afw.detection as afwDet # noqa E402
import lsst.afw.image as afwImage # noqa E402
import lsst.afw.table as afwTable # noqa E402
from lsst.meas.deblender.baseline import deblend # noqa E402

from astrometry.util.plotutils import PlotSequence
from astrometry.util.plotutils import PlotSequence # noqa E402

import lsstDebug
import lsstDebug # noqa E402
lsstDebug.Info('lsst.meas.deblender.baseline').psf = True


Expand Down