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-15442: Add missing pyList=[] to test/SConscript files #24

Merged
merged 3 commits into from
Aug 17, 2018
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: 8 additions & 0 deletions .travis.yml
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
2 changes: 0 additions & 2 deletions python/lsst/meas/extensions/shapeHSM/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@

"""lsst.meas.extensions.shapeHSM
"""
from __future__ import absolute_import, division, print_function

from lsst.meas.base import BasePlugin, wrapSimpleAlgorithm

from .hsmMomentsControl import *
Expand Down
8 changes: 8 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[flake8]
max-line-length = 110
ignore = E133, E226, E228, N802, N803, N806
exclude = __init__.py, config/*.py

[tool:pytest]
addopts = --flake8
flake8-ignore = E133 E226 E228 N802 N803 N806
2 changes: 1 addition & 1 deletion tests/SConscript
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- python -*-
from lsst.sconsUtils import scripts
scripts.BasicSConscript.tests()
scripts.BasicSConscript.tests(pyList=[])
7 changes: 0 additions & 7 deletions tests/testHsm.py → tests/test_hsm.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
# the GNU General Public License along with this program. If not,
# see <https://www.lsstcorp.org/LegalNotices/>.
#
from __future__ import absolute_import, division, print_function
import os
import numpy as np
import unittest
Expand All @@ -39,12 +38,6 @@
import lsst.utils.tests
import lsst.meas.extensions.shapeHSM

try:
type(verbose)
except NameError:
verbose = 0
display = False

SIZE_DECIMALS = 2 # Number of decimals for equality in sizes
SHAPE_DECIMALS = 3 # Number of decimals for equality in shapes

Expand Down