Skip to content

Commit 5894d3d

Browse files
committed
More files
1 parent 9bfcdbf commit 5894d3d

11 files changed

+227
-241
lines changed

.codespellrc

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[codespell]
2+
skip = *.asdf,*.fits,*.fts,*.header,*.json,*.xsh,*cache*,*egg*,*extern*,.git,.idea,.tox,_build,*truncated,*.svg, .asv_env,.history
3+
ignore-words-list =
4+
alog,
5+
nd,
6+
nin,
7+
observ,
8+
ot,
9+
te,
10+
upto,
11+
afile,
12+
precessed,
13+
precess

.coveragerc

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[run]
2+
omit =
3+
sunpy/cython_version*
4+
sunpy/extern/*
5+
sunpy/version*
6+
sunpy/data/sample.py
7+
sunpy/data/_sample.py
8+
sunpy/data/test/_generate_asdf_test.py
9+
*/sunpy/cython_version*
10+
*/sunpy/extern/*
11+
*/sunpy/version*
12+
*/sunpy/data/sample.py
13+
*/sunpy/data/_sample.py

.editorconfig

+10-11
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
# https://editorconfig.org
2-
3-
root = true
4-
2+
root=true
53
# utf, UNIX-style new line
4+
65
[*]
7-
charset = utf-8
8-
end_of_line = lf
9-
insert_final_newline = true
10-
trim_trailing_whitespace = true
6+
charset=utf-8
7+
end_of_line=lf
8+
insert_final_newline=true
9+
trim_trailing_whitespace=true
1110

1211
[*.{py,rst,md}]
13-
indent_style = space
14-
indent_size = 4
12+
indent_style=space
13+
indent_size=4
1514

1615
[*.yml]
17-
indent_style = space
18-
indent_size = 2
16+
indent_style=space
17+
indent_size=2

.flake8

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[flake8]
2+
ignore =
3+
# missing-whitespace-around-operator
4+
E225
5+
# missing-whitespace-around-arithmetic-operator
6+
E226
7+
# line-too-long
8+
E501
9+
# unused-import
10+
F401
11+
# undefined-local-with-import-star
12+
F403
13+
# redefined-while-unused
14+
F811
15+
# Line break occurred before a binary operator
16+
W503,
17+
# Line break occurred after a binary operator
18+
W504
19+
max-line-length = 110
20+
exclude =
21+
.git
22+
__pycache__
23+
docs/conf.py
24+
build
25+
sunpy/data/sample.py
26+
sunpy/extern/**
27+
sunpy/__init__.py,
28+
rst-directives =
29+
plot

.isort.cfg

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[settings]
2+
balanced_wrapping = true
3+
skip =
4+
sunpy/extern/
5+
sunpy/cm/__init__.py,
6+
docs/conf.py,
7+
sunpy/__init__.py,
8+
default_section = THIRDPARTY
9+
include_trailing_comma = true
10+
known_astropy = astropy, asdf
11+
known_first_party = sunpy
12+
length_sort = false
13+
length_sort_sections = stdlib
14+
line_length = 110
15+
multi_line_output = 3
16+
no_lines_before = LOCALFOLDER
17+
sections = STDLIB, THIRDPARTY, ASTROPY, FIRSTPARTY, LOCALFOLDER

.pre-commit-config.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ repos:
1010
rev: 5.13.2
1111
hooks:
1212
- id: isort
13-
args: ["--sp", "pyproject.toml"]
1413
exclude: ".*(.fits|.fts|.fit|.header|.txt|tca.*|extern.*|sunpy/extern)$"
1514
- repo: https://github.com/pre-commit/pre-commit-hooks
1615
rev: v4.5.0
@@ -33,7 +32,7 @@ repos:
3332
- id: codespell
3433
additional_dependencies:
3534
- tomli
36-
args: ["--config pyproject.toml --write-changes"]
35+
args: ["--write-changes"]
3736
- repo: local
3837
hooks:
3938
- id: generate-sunpy-net-hek-attrs

.ruff.toml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
target-version = "py310"
2+
line-length = 110
3+
exclude = [
4+
".git,",
5+
"__pycache__",
6+
"build",
7+
"sunpy/extern/**",
8+
"sunpy/version.py",
9+
]
10+
select = ["E", "F", "W", "UP", "PT"]
11+
extend-ignore = [
12+
# pycodestyle (E, W)
13+
"E501", # LineTooLong # TODO! fix
14+
# pytest (PT)
15+
"PT001", # Always use pytest.fixture()
16+
"PT004", # Fixtures which don't return anything should have leading _
17+
"PT007", # Parametrize should be lists of tuples # TODO! fix
18+
"PT011", # Too broad exception assert # TODO! fix
19+
"PT023", # Always use () on pytest decorators
20+
]
21+
22+
[flake8-tidy-imports]
23+
[flake8-tidy-imports.banned-api]
24+
"warnings.warn".msg = "Use sunpy specific warning helpers warn_* from sunpy.utils.exceptions"
25+
26+
[per-file-ignores]
27+
# Part of configuration, not a package.
28+
"setup.py" = ["INP001"]
29+
"conftest.py" = ["INP001"]
30+
# Implicit-namespace-package. The examples are not a package.
31+
"docs/*.py" = ["INP001"]
32+
"__init__.py" = ["E402", "F401", "F403"]
33+
"test_*.py" = ["B011", "D", "E402", "PGH001", "S101"]
34+
# Need to import clients to register them, but don't use them in file
35+
"sunpy/net/__init__.py" = ["F811"]
36+
# These files are allowed to use warnings.warn
37+
"sunpy/util/exceptions.py" = ["TID251"]
38+
"sunpy/util/tests/test_logger.py" = ["TID251"]
39+
"sunpy/util/decorators.py" = ["TID251"]
40+
41+
[pydocstyle]
42+
convention = "numpy"

0 commit comments

Comments
 (0)