-
Notifications
You must be signed in to change notification settings - Fork 2
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 #50 from ubermag/precommit_updates
Update pre-commits and pytest configuration
- Loading branch information
Showing
14 changed files
with
119 additions
and
130 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,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 | ||
|
||
|
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,4 +1,5 @@ | ||
"""Setup basic logging for all ubermag packages.""" | ||
|
||
import logging | ||
|
||
|
||
|
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,4 +1,5 @@ | ||
"""Additional tools.""" | ||
|
||
import contextlib | ||
import os | ||
|
||
|
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,12 +1,11 @@ | ||
"""Typesystem utility.""" | ||
from .descriptors import ( | ||
Descriptor, | ||
Dictionary, | ||
Name, | ||
Parameter, | ||
Scalar, | ||
Subset, | ||
Typed, | ||
Vector, | ||
) | ||
from .typesystem import typesystem | ||
|
||
from .descriptors import Descriptor as Descriptor | ||
from .descriptors import Dictionary as Dictionary | ||
from .descriptors import Name as Name | ||
from .descriptors import Parameter as Parameter | ||
from .descriptors import Scalar as Scalar | ||
from .descriptors import Subset as Subset | ||
from .descriptors import Typed as Typed | ||
from .descriptors import Vector as Vector | ||
from .typesystem import typesystem as typesystem |
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,2 +1,6 @@ | ||
"""SI multiplier utility.""" | ||
from .units import rsi_prefixes, si_max_multiplier, si_multiplier, si_prefixes | ||
|
||
from .units import rsi_prefixes as rsi_prefixes | ||
from .units import si_max_multiplier as si_max_multiplier | ||
from .units import si_multiplier as si_multiplier | ||
from .units import si_prefixes as si_prefixes |
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