-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
171 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,81 +1,81 @@ | ||
# Allow unused variables when underscore-prefixed. | ||
lint.dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" | ||
target-version = "py310" | ||
line-length = 120 | ||
exclude = [ | ||
".git,", | ||
"__pycache__", | ||
"build", | ||
"aiapy/version.py", | ||
extend-exclude=[ | ||
"__pycache__", | ||
"build", | ||
"tools/**", | ||
] | ||
|
||
[lint] | ||
select = [ | ||
"E", | ||
"F", | ||
"W", | ||
"UP", | ||
"PT", | ||
"BLE", | ||
"A", | ||
"C4", | ||
"INP", | ||
"PIE", | ||
"T20", | ||
"RET", | ||
"TID", | ||
"PTH", | ||
"PD", | ||
"PLC", | ||
"PLE", | ||
"FLY", | ||
"NPY", | ||
"PERF", | ||
"RUF", | ||
lint.select = [ | ||
"ALL", | ||
] | ||
extend-ignore = [ | ||
# pycodestyle (E, W) | ||
"E501", # ignore line length will use a formatter instead | ||
# pyupgrade (UP) | ||
"UP038", # Use | in isinstance - not compatible with models and is slower | ||
# pytest (PT) | ||
"PT001", # Always use pytest.fixture() | ||
"PT023", # Always use () on pytest decorators | ||
# flake8-pie (PIE) | ||
"PIE808", # Disallow passing 0 as the first argument to range | ||
# flake8-use-pathlib (PTH) | ||
"PTH123", # open() should be replaced by Path.open() | ||
# Ruff (RUF) | ||
"RUF003", # Ignore ambiguous quote marks, doesn't allow ' in comments | ||
"RUF012", # Mutable class attributes should be annotated with `typing.ClassVar` | ||
"RUF013", # PEP 484 prohibits implicit `Optional` | ||
"RUF015", # Prefer `next(iter(...))` over single element slice | ||
lint.extend-ignore = [ | ||
"ANN001", # Missing type annotation for function argument | ||
"ANN002", # Missing type annotation for variable | ||
"ANN003", # Missing type annotation for keyword | ||
"ANN201", # Missing return type annotation for public function | ||
"ANN202", # Missing return type annotation for private function | ||
"ANN205", # Missing return type annotation for staticmethod | ||
"ANN206", # Missing return type annotation for classmethod | ||
"COM812", # May cause conflicts when used with the formatter | ||
"D200", # One-line docstring should fit on one line | ||
"D205", # 1 blank line required between summary line and description | ||
"D400", # First line should end with a period | ||
"D401", # First line should be in imperative mood | ||
"D404", # First word of the docstring should not be "This" | ||
"E501", # Line too long | ||
"FIX001", # Line contains FIXME, consider resolving the issue | ||
"FIX002", # Line contains TODO, consider resolving the issue | ||
"ISC001", # May cause conflicts when used with the formatter | ||
"PLR0913", # Too many arguments in function definition | ||
"TD001", # Invalid TODO tag: `FIXME` | ||
"TD002", # Missing author in TODO | ||
"TD003", # Missing issue link on the line following this TODO | ||
] | ||
|
||
[lint.per-file-ignores] | ||
"setup.py" = [ | ||
"INP001", # File is part of an implicit namespace package. | ||
] | ||
"conftest.py" = [ | ||
"INP001", # File is part of an implicit namespace package. | ||
"examples/*.py" = [ | ||
"B018", # Not print but display | ||
"D400", # First line should end with a period, question mark, or exclamation point | ||
"ERA001", # Commented out code | ||
"INP001", # Implicit namespace package | ||
"T201", # Use print | ||
] | ||
"docs/conf.py" = [ | ||
"E402" # Module imports not at top of file | ||
"D100", # Missing docstring in public module | ||
"INP001", # conf.py is part of an implicit namespace package | ||
] | ||
"docs/*.py" = [ | ||
"INP001", # File is part of an implicit namespace package. | ||
"setup.py" = [ | ||
"D100", # Missing docstring in public module | ||
] | ||
"examples/**.py" = [ | ||
"T201", # allow use of print in examples | ||
"INP001", # File is part of an implicit namespace package. | ||
"*tests/__init__.py" = [ | ||
"D100", # Missing docstring in public module | ||
"D104", # Missing docstring in public package | ||
] | ||
"__init__.py" = [ | ||
"E402", # Module level import not at top of cell | ||
"F401", # Unused import | ||
"F403", # from {name} import * used; unable to detect undefined names | ||
"F405", # {name} may be undefined, or defined from star imports | ||
"*tests/*/__init__.py" = [ | ||
"D100", # Missing docstring in public module | ||
"D104", # Missing docstring in public package | ||
] | ||
"test_*.py" = [ | ||
"E402", # Module level import not at top of cell | ||
"D100", # Missing docstring in public module | ||
"D103", # Missing docstring in public function | ||
"N806", # in function should be lowercase | ||
"PLR2004", # Magic value used in comparison | ||
"S101", # Use of `assert` detected | ||
] | ||
"*version.py" = [ | ||
"D100", # Missing docstring in public module | ||
] | ||
"*conftest.py" = [ | ||
"D100", # Missing docstring in public module | ||
"D104", # Missing docstring in public package | ||
] | ||
|
||
[lint.pydocstyle] | ||
convention = "numpy" | ||
|
||
[format] | ||
docstring-code-format = true | ||
indent-style = "space" | ||
quote-style = "double" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
""" | ||
Functions for calibrating AIA images. | ||
""" | ||
"""Functions for calibrating AIA images.""" | ||
|
||
import warnings | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.