Skip to content

Commit 2487ba5

Browse files
Add line length ignores for spec strings (#9139)
2 parents 0984688 + e15eec2 commit 2487ba5

File tree

67 files changed

+93
-116
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+93
-116
lines changed

jwst/ami/ami_analyze_step.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,17 @@ class AmiAnalyzeStep(Step):
2828
class_alias = "ami_analyze"
2929

3030
spec = """
31-
oversample = integer(default=3, min=1) # Oversampling factor
32-
rotation = float(default=0.0) # Rotation initial guess [deg]
31+
oversample = integer(default=3, min=1) # Oversampling factor
32+
rotation = float(default=0.0) # Rotation initial guess [deg]
3333
psf_offset = string(default='0.0 0.0') # PSF offset values to use to create the model array
3434
rotation_search = string(default='-3 3 1') # Rotation search parameters: start, stop, step
3535
bandpass = string(default=None) # ASDF file containing array to override filter/source
36-
# If True, exclude pixels marked DO_NOT_USE from fringe fitting
37-
usebp = boolean(default=True)
36+
usebp = boolean(default=True) # If True, exclude pixels marked DO_NOT_USE from fringe fitting
3837
firstfew = integer(default=None) # If not None, process only the first few integrations
39-
chooseholes = string(default=None)
40-
# If not None, fit only certain fringes e.g. ['B4','B5','B6','C2']
41-
affine2d = string(default='commissioning')
42-
# ASDF file containing user-defined affine parameters OR 'commssioning'
38+
chooseholes = string(default=None) # If not None, fit only certain fringes e.g. ['B4','B5','B6','C2']
39+
affine2d = string(default='commissioning') # ASDF file containing user-defined affine parameters OR 'commssioning'
4340
run_bpfix = boolean(default=True) # Run Fourier bad pixel fix on cropped data
44-
"""
41+
""" # noqa: E501
4542

4643
reference_file_types = ["throughput", "nrm"]
4744

jwst/ami/ami_average_step.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class AmiAverageStep(Step):
1111

1212
spec = """
1313
skip = boolean(default=True) # Do not run this step
14-
"""
14+
""" # noqa: E501
1515

1616
def flatten_input(self, input_items):
1717
"""Return generator to provide iterable simple list with no nested structure."""

jwst/ami/ami_normalize_step.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class AmiNormalizeStep(Step):
1414

1515
spec = """
1616
suffix = string(default='aminorm-oi')
17-
"""
17+
""" # noqa: E501
1818

1919
def process(self, target, reference):
2020
"""

jwst/assign_mtwcs/assign_mtwcs_step.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class AssignMTWcsStep(Step):
2121
spec = """
2222
suffix = string(default='assign_mtwcs') # Default suffix for output files
2323
output_use_model = boolean(default=True) # When saving use `DataModel.meta.filename`
24-
"""
24+
""" # noqa: E501
2525

2626
def process(self, input_lib):
2727
"""

jwst/assign_wcs/assign_wcs_step.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ class AssignWcsStep(Step):
5959
sip_npoints = integer(default=12) # number of points for SIP
6060
slit_y_low = float(default=-.55) # The lower edge of a slit.
6161
slit_y_high = float(default=.55) # The upper edge of a slit.
62-
63-
"""
62+
""" # noqa: E501
6463

6564
reference_file_types = ['distortion', 'filteroffset', 'specwcs', 'regions',
6665
'wavelengthrange', 'camera', 'collimator', 'disperser',

jwst/background/background_step.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class BackgroundStep(Step):
2323
wfss_maxiter = integer(default=5) # WFSS iterative outlier rejection max iterations
2424
wfss_rms_stop = float(default=0) # WFSS iterative outlier rejection RMS improvement threshold (percent)
2525
wfss_outlier_percent = float(default=1) # WFSS outlier percentile to reject per iteration
26-
"""
26+
""" # noqa: E501
2727

2828
# These reference files are only used for WFSS/GRISM data.
2929
reference_file_types = ["wfssbkg", "wavelengthrange"]

jwst/badpix_selfcal/badpix_selfcal_step.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class BadpixSelfcalStep(Step):
3232
force_single = boolean(default=False) # force single input exposure
3333
save_flagged_bkg = boolean(default=False) # save flagged background exposures to file
3434
skip = boolean(default=True)
35-
"""
35+
""" # noqa: E501
3636

3737
def save_model(self, model, *args, **kwargs):
3838
"""Override save_model to suppress index 0 when save_model is True"""

jwst/barshadow/barshadow_step.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class BarShadowStep(Step):
2323
spec = """
2424
inverse = boolean(default=False) # Invert the operation
2525
source_type = string(default=None) # Process as specified source type.
26-
"""
26+
""" # noqa: E501
2727

2828
reference_file_types = ['barshadow']
2929

jwst/charge_migration/charge_migration_step.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ChargeMigrationStep(Step):
2222
spec = """
2323
signal_threshold = float(default=25000)
2424
skip = boolean(default=True)
25-
"""
25+
""" # noqa: E501
2626

2727
def process(self, step_input):
2828

jwst/clean_flicker_noise/clean_flicker_noise_step.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class CleanFlickerNoiseStep(Step):
9090
save_background = boolean(default=False) # Save the fit background
9191
save_noise = boolean(default=False) # Save the fit noise
9292
skip = boolean(default=True) # By default, skip the step
93-
"""
93+
""" # noqa: E501
9494

9595
reference_file_types = ["flat"]
9696

0 commit comments

Comments
 (0)