-
Notifications
You must be signed in to change notification settings - Fork 13
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 #525 from ubermag/precommit_updates
Update pre-commits and pytest configuration
- Loading branch information
Showing
18 changed files
with
74 additions
and
90 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
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 |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
and :py:func:`discretisedfield.Field.fromfile` instead. | ||
""" | ||
|
||
import json | ||
import pathlib | ||
|
||
|
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,4 +1,5 @@ | ||
"""OVF to VTK file conversion.""" | ||
|
||
import argparse | ||
|
||
import discretisedfield as df | ||
|
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,14 +1,14 @@ | ||
"""Matplotlib based plotting.""" | ||
# ruff: noqa: F401 | ||
from discretisedfield.plotting import util | ||
from discretisedfield.plotting.hv import Hv | ||
from discretisedfield.plotting.k3d_field import K3dField | ||
from discretisedfield.plotting.k3d_mesh import K3dMesh | ||
from discretisedfield.plotting.k3d_region import K3dRegion | ||
from discretisedfield.plotting.mpl import add_colorwheel | ||
from discretisedfield.plotting.mpl_field import MplField | ||
from discretisedfield.plotting.mpl_mesh import MplMesh | ||
from discretisedfield.plotting.mpl_region import MplRegion | ||
from discretisedfield.plotting.pyvista_field import PyVistaField | ||
from discretisedfield.plotting.pyvista_mesh import PyVistaMesh | ||
from discretisedfield.plotting.pyvista_region import PyVistaRegion | ||
|
||
from discretisedfield.plotting import util as util | ||
from discretisedfield.plotting.hv import Hv as Hv | ||
from discretisedfield.plotting.k3d_field import K3dField as K3dField | ||
from discretisedfield.plotting.k3d_mesh import K3dMesh as K3dMesh | ||
from discretisedfield.plotting.k3d_region import K3dRegion as K3dRegion | ||
from discretisedfield.plotting.mpl import add_colorwheel as add_colorwheel | ||
from discretisedfield.plotting.mpl_field import MplField as MplField | ||
from discretisedfield.plotting.mpl_mesh import MplMesh as MplMesh | ||
from discretisedfield.plotting.mpl_region import MplRegion as MplRegion | ||
from discretisedfield.plotting.pyvista_field import PyVistaField as PyVistaField | ||
from discretisedfield.plotting.pyvista_mesh import PyVistaMesh as PyVistaMesh | ||
from discretisedfield.plotting.pyvista_region import PyVistaRegion as PyVistaRegion |
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,4 +1,5 @@ | ||
"""Holoviews-based plotting.""" | ||
|
||
import contextlib | ||
import copy | ||
import functools | ||
|
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,4 +1,5 @@ | ||
"""K3d based plotting.""" | ||
|
||
import k3d | ||
import matplotlib | ||
import numpy as np | ||
|
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,4 +1,5 @@ | ||
"""Matplotlib-based plotting.""" | ||
|
||
import abc | ||
|
||
import matplotlib.pyplot as plt | ||
|
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,4 +1,5 @@ | ||
"""Matplotlib-based plotting.""" | ||
|
||
import warnings | ||
|
||
import matplotlib.pyplot as plt | ||
|
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,13 +1,11 @@ | ||
"""Convenience tools""" | ||
# ruff: noqa: F401 | ||
from .tools import ( | ||
count_bps, | ||
count_large_cell_angle_regions, | ||
demag_field, | ||
demag_tensor, | ||
emergent_magnetic_field, | ||
max_neighbouring_cell_angle, | ||
neighbouring_cell_angle, | ||
topological_charge, | ||
topological_charge_density, | ||
) | ||
|
||
from .tools import count_bps as count_bps | ||
from .tools import count_large_cell_angle_regions as count_large_cell_angle_regions | ||
from .tools import demag_field as demag_field | ||
from .tools import demag_tensor as demag_tensor | ||
from .tools import emergent_magnetic_field as emergent_magnetic_field | ||
from .tools import max_neighbouring_cell_angle as max_neighbouring_cell_angle | ||
from .tools import neighbouring_cell_angle as neighbouring_cell_angle | ||
from .tools import topological_charge as topological_charge | ||
from .tools import topological_charge_density as topological_charge_density |
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,2 +1,4 @@ | ||
# ruff: noqa: F401 | ||
from .util import array2tuple, assemble_index, bergluescher_angle, rescale_xarray | ||
from .util import array2tuple as array2tuple | ||
from .util import assemble_index as assemble_index | ||
from .util import bergluescher_angle as bergluescher_angle | ||
from .util import rescale_xarray as rescale_xarray |
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,30 +1,2 @@ | ||
[flake8] | ||
exclude = | ||
.git, | ||
__pycache__, | ||
build, | ||
dev, | ||
dist, | ||
setup.py | ||
# black has a longer default line length | ||
max-line-length = 88 | ||
# D107: missing docstring in __init__ | ||
# E203: withespace before ':', required for black | ||
# RST210: Inline strong start-string without end-string. # complains about "**kwargs" in docstrings | ||
extend-ignore = D107,RST210,E203 | ||
per-file-ignores = | ||
# imported but unused | ||
__init__.py: F401 | ||
# ignore missing docstrings in tests | ||
test_*.py: D100,D101,D102,D103 | ||
docstring-convention: numpy | ||
# flake8-rst-docstrings: | ||
rst-roles = | ||
py:class, | ||
py:func, | ||
rst-directives = | ||
seealso, | ||
plot, | ||
|
||
[codespell] | ||
skip = .*,build/*,dev/*,dist/* |
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,4 +1,5 @@ | ||
"""Tasks to release the package.""" | ||
|
||
import os | ||
import shutil | ||
|
||
|