Skip to content

Commit

Permalink
Merge pull request #833 from mwcraig/black-format-codebase
Browse files Browse the repository at this point in the history
Black format codebase
  • Loading branch information
mwcraig committed Aug 11, 2024
2 parents e6be6a7 + 66e744a commit c79ec1d
Show file tree
Hide file tree
Showing 30 changed files with 2,151 additions and 1,734 deletions.
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Ignore black formatting changes
f76a29df2b570e9f42bf2e14c15bbb9223bfa14f
10 changes: 6 additions & 4 deletions ccdproc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# should keep this content at the top.
# ----------------------------------------------------------------------------
from ._astropy_init import * # noqa

# ----------------------------------------------------------------------------

# set up namespace
Expand All @@ -21,12 +22,13 @@

class Conf(_config.ConfigNamespace):
"""Configuration parameters for ccdproc."""

auto_logging = _config.ConfigItem(
True,
'Whether to automatically log operations to metadata'
'If set to False, there is no need to specify add_keyword=False'
'when calling processing operations.'
)
"Whether to automatically log operations to metadata"
"If set to False, there is no need to specify add_keyword=False"
"when calling processing operations.",
)


conf = Conf()
Expand Down
5 changes: 3 additions & 2 deletions ccdproc/_astropy_init.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import os

__all__ = ['__version__', 'test']
__all__ = ["__version__", "test"]

try:
from .version import version as __version__
except ImportError:
__version__ = ''
__version__ = ""

# Create the test function for self test
from astropy.tests.runner import TestRunner

test = TestRunner.make_test_runner_in(os.path.dirname(__file__))
4 changes: 2 additions & 2 deletions ccdproc/ccddata.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
from astropy.nddata import fits_ccddata_reader, fits_ccddata_writer, CCDData


__all__ = ['CCDData', 'fits_ccddata_reader', 'fits_ccddata_writer']
__all__ = ["CCDData", "fits_ccddata_reader", "fits_ccddata_writer"]


# This should be be a tuple to ensure it isn't inadvertently changed
# elsewhere.
_recognized_fits_file_extensions = ('fit', 'fits', 'fts')
_recognized_fits_file_extensions = ("fit", "fits", "fts")
Loading

0 comments on commit c79ec1d

Please sign in to comment.