Skip to content

Commit

Permalink
Fix pre-commit issues add isort config
Browse files Browse the repository at this point in the history
  • Loading branch information
samaloney committed Jul 9, 2024
1 parent e1198b2 commit e81656a
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 11 deletions.
2 changes: 1 addition & 1 deletion chimerapy/chimera.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Package for Coronal Hole Identification Algorithm"""

import glob
import sys
import glob

import astropy.units as u
import cv2
Expand Down
2 changes: 1 addition & 1 deletion chimerapy/chimera_legacy.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
""" """

import glob
import sys
import glob

import astropy.units as u
import cv2
Expand Down
60 changes: 51 additions & 9 deletions chimerapy/tests/test_chimera.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,62 @@
import glob
import os
import glob
import warnings

import mahotas
import numpy as np
from astropy.io import fits
from astropy.modeling.models import Gaussian2D

from chimerapy.chimera import (Bounds, Xeb, Xnb, Xsb, Xwb, Yeb, Ynb, Ysb, Ywb,
ang, arcar, arccent, area, cent, centlat,
centlon, chpts, cont, coords, csys, data, datb,
datc, datm, dist, eastl, extent, filter, hg,
ins_prop, mB, mBneg, mBpos, npix, pos,
remove_neg, rescale_aia, rescale_hmi,
set_contour, sort, threshold, truarcar, trummar,
trupixar, westl, width, xpos, ypos)
from chimerapy.chimera import (
Bounds,
Xeb,
Xnb,
Xsb,
Xwb,
Yeb,
Ynb,
Ysb,
Ywb,
ang,
arcar,
arccent,
area,
cent,
centlat,
centlon,
chpts,
cont,
coords,
csys,
data,
datb,
datc,
datm,
dist,
eastl,
extent,
filter,
hg,
ins_prop,
mB,
mBneg,
mBpos,
npix,
pos,
remove_neg,
rescale_aia,
rescale_hmi,
set_contour,
sort,
threshold,
truarcar,
trummar,
trupixar,
westl,
width,
xpos,
ypos,
)

file_path = "./"

Expand Down
13 changes: 13 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,19 @@ omit = [
"*/chimerapy/version*",
]

[tool.isort]
balanced_wrapping = true
extend_skip = ["docs/conf.py", "chimerapy/__init__.py"]
default_section = "THIRDPARTY"
include_trailing_comma = true
known_first_party = "stixpy"
length_sort = false
length_sort_sections = "stdlib"
line_length = 120
multi_line_output = 3
no_lines_before = "LOCALFOLDER"
sections = ["STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]

[tool.coverage.report]
exclude_lines = [
# Have to re-enable the standard pragma
Expand Down

0 comments on commit e81656a

Please sign in to comment.