-
-
Notifications
You must be signed in to change notification settings - Fork 573
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7384 from nabobalis/pyproj
move to pyproject.toml + dedicated tool configs
- Loading branch information
Showing
21 changed files
with
424 additions
and
456 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[codespell] | ||
skip = *.asdf,*.fits,*.fts,*.header,*.json,*.xsh,*cache*,*egg*,*extern*,.git,.idea,.tox,_build,*truncated,*.svg,.asv_env,.history | ||
ignore-words-list = | ||
alog, | ||
nd, | ||
nin, | ||
observ, | ||
ot, | ||
te, | ||
upto, | ||
afile, | ||
precessed, | ||
precess |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[run] | ||
omit = | ||
sunpy/cython_version* | ||
sunpy/extern/* | ||
sunpy/version* | ||
sunpy/data/sample.py | ||
sunpy/data/_sample.py | ||
sunpy/data/test/_generate_asdf_test.py | ||
*/sunpy/cython_version* | ||
*/sunpy/extern/* | ||
*/sunpy/version* | ||
*/sunpy/data/sample.py | ||
*/sunpy/data/_sample.py |
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,18 +1,17 @@ | ||
# https://editorconfig.org | ||
|
||
root = true | ||
|
||
root=true | ||
# utf, UNIX-style new line | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
charset=utf-8 | ||
end_of_line=lf | ||
insert_final_newline=true | ||
trim_trailing_whitespace=true | ||
|
||
[*.{py,rst,md}] | ||
indent_style = space | ||
indent_size = 4 | ||
indent_style=space | ||
indent_size=4 | ||
|
||
[*.yml] | ||
indent_style = space | ||
indent_size = 2 | ||
indent_style=space | ||
indent_size=2 |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[flake8] | ||
ignore = | ||
# missing-whitespace-around-operator | ||
E225 | ||
# missing-whitespace-around-arithmetic-operator | ||
E226 | ||
# line-too-long | ||
E501 | ||
# unused-import | ||
F401 | ||
# undefined-local-with-import-star | ||
F403 | ||
# redefined-while-unused | ||
F811 | ||
# Line break occurred before a binary operator | ||
W503, | ||
# Line break occurred after a binary operator | ||
W504 | ||
max-line-length = 110 | ||
exclude = | ||
.git | ||
__pycache__ | ||
docs/conf.py | ||
build | ||
sunpy/data/sample.py | ||
sunpy/extern/** | ||
sunpy/__init__.py, | ||
rst-directives = | ||
plot |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[settings] | ||
balanced_wrapping = true | ||
skip = | ||
sunpy/extern/ | ||
sunpy/cm/__init__.py, | ||
docs/conf.py, | ||
sunpy/__init__.py, | ||
default_section = THIRDPARTY | ||
include_trailing_comma = true | ||
known_astropy = astropy, asdf | ||
known_first_party = sunpy | ||
length_sort = false | ||
length_sort_sections = stdlib | ||
line_length = 110 | ||
multi_line_output = 3 | ||
no_lines_before = LOCALFOLDER | ||
sections = STDLIB, THIRDPARTY, ASTROPY, FIRSTPARTY, LOCALFOLDER |
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
target-version = "py310" | ||
line-length = 110 | ||
exclude = [ | ||
".git,", | ||
"__pycache__", | ||
"build", | ||
"sunpy/extern/**", | ||
"sunpy/version.py", | ||
] | ||
select = ["E", "F", "W", "UP", "PT"] | ||
extend-ignore = [ | ||
# pycodestyle (E, W) | ||
"E501", # LineTooLong # TODO! fix | ||
# pytest (PT) | ||
"PT001", # Always use pytest.fixture() | ||
"PT004", # Fixtures which don't return anything should have leading _ | ||
"PT007", # Parametrize should be lists of tuples # TODO! fix | ||
"PT011", # Too broad exception assert # TODO! fix | ||
"PT023", # Always use () on pytest decorators | ||
] | ||
|
||
[flake8-tidy-imports] | ||
[flake8-tidy-imports.banned-api] | ||
"warnings.warn".msg = "Use sunpy specific warning helpers warn_* from sunpy.utils.exceptions" | ||
|
||
[per-file-ignores] | ||
# Part of configuration, not a package. | ||
"setup.py" = ["INP001"] | ||
"conftest.py" = ["INP001"] | ||
# Implicit-namespace-package. The examples are not a package. | ||
"docs/*.py" = ["INP001"] | ||
"__init__.py" = ["E402", "F401", "F403"] | ||
"test_*.py" = ["B011", "D", "E402", "PGH001", "S101"] | ||
# Need to import clients to register them, but don't use them in file | ||
"sunpy/net/__init__.py" = ["F811"] | ||
# These files are allowed to use warnings.warn | ||
"sunpy/util/exceptions.py" = ["TID251"] | ||
"sunpy/util/tests/test_logger.py" = ["TID251"] | ||
"sunpy/util/decorators.py" = ["TID251"] | ||
|
||
[pydocstyle] | ||
convention = "numpy" |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
Moved to ``pyproject.toml`` and removed ``setup.py`` and ``setup.cfg``. |
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
Oops, something went wrong.