Skip to content

Commit

Permalink
Merge pull request #93 from lsst/tickets/DM-23173-obs_lsstSim
Browse files Browse the repository at this point in the history
DM-23173: change W504 to W503 and fix flake8 warnings
  • Loading branch information
r-owen committed Apr 27, 2020
2 parents 6d6cf70 + b49ab5e commit 16f0df3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin.src/genInputRegistry.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def processRaft(raftDir, conn, done):
nUnrecognized = 0
for fits in glob.glob(os.path.join(raftDir, "S[0-2][0-2]",
"imsim_*_R[0-4][0-4]_S[0-2][0-2]_C[01][0-7]_E00[01].fits*")):
m = re.search(r'v(\d+)-f(\w)/E00(\d)/R(\d)(\d)/S(\d)(\d)/' +
m = re.search(r'v(\d+)-f(\w)/E00(\d)/R(\d)(\d)/S(\d)(\d)/'
r'imsim_\1_R\4\5_S\6\7_C(\d)(\d)_E00\3\.fits', fits)
if not m:
print("Warning: Unrecognized file:", fits, file=sys.stderr)
Expand Down
6 changes: 3 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[flake8]
max-line-length = 110
ignore = E133, E226, E228, N802, N803, N806, N812, N815, N816, W504
exclude = __init__.py, config/*, description/*
ignore = E133, E226, E228, N802, N803, N806, N812, N815, N816, W503
exclude = __init__.py, bin/*, config/*, description/*

[tool:pytest]
addopts = --flake8
flake8-ignore = E133 E226 E228 N802 N803 N806 N812 N815 N816 W504
flake8-ignore = E133 E226 E228 N802 N803 N806 N812 N815 N816 W503

0 comments on commit 16f0df3

Please sign in to comment.