-
Notifications
You must be signed in to change notification settings - Fork 21
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-14001: Make afw pep8 compliant and enable auto testing #341
Changes from all commits
a99552a
b741342
acf67ea
4f677fb
c4d42d4
74b98c8
2534050
4adda76
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
sudo: false | ||
language: python | ||
matrix: | ||
include: | ||
- python: '3.6' | ||
install: | ||
- pip install flake8 | ||
script: flake8 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -174,13 +174,13 @@ def run(): | |
interpLength, | ||
) | ||
destWcs = makeWcs( | ||
projName = "TAN", | ||
destCtrInd = destCtrInd, | ||
skyOffset = skyOffset, | ||
rotAng = rotAng, | ||
scaleFac = scaleFac, | ||
srcWcs = srcWcs, | ||
srcCtrInd = srcCtrInd, | ||
projName="TAN", | ||
destCtrInd=destCtrInd, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, the original version was "correct": https://developer.lsst.io/python/style.html#keyword-assignment-operators-should-be-surrounded-by-a-space-when-statements-appear-on-multiple-lines There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, but the original version did not pass flake8 linter using our standard published flake8 configuration, which had fewer things disabled than my own settings. Sigh. I wish our standard was at least optional, but as it stands there is no simple way to reconcile our published list of flake8 ignores and our style guide. I filed RFC-471 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I really do think we should use PEP8 here. I don't understand the motivation for the space. It seems to me that if you have a longish line, and then add a new keyword and have to go on a new line, that you suddenly need to add spaces everywhere. |
||
skyOffset=skyOffset, | ||
rotAng=rotAng, | ||
scaleFac=scaleFac, | ||
srcWcs=srcWcs, | ||
srcCtrInd=srcCtrInd, | ||
) | ||
destExposure.setWcs(destWcs) | ||
dTime, nIter, goodPix = timeWarp( | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import os, os.path, sys | ||
import os | ||
import sys | ||
import lsst.utils | ||
import gdb | ||
# | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the
+
needed? (I know you didn't add it).