-
Notifications
You must be signed in to change notification settings - Fork 5
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 #30 from greglucas/mnt-cleanup
cleanup, linting, type annotations
- Loading branch information
Showing
23 changed files
with
253 additions
and
176 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
ci: | ||
autofix_prs: false | ||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: 22.12.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
name: isort (python) | ||
- repo: https://github.com/charliermarsh/ruff-pre-commit | ||
rev: 'v0.0.236' | ||
hooks: | ||
- id: ruff | ||
args: [--fix] |
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
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,24 +1,4 @@ | ||
import os | ||
from pathlib import Path | ||
"""Python interface to the MSIS codes.""" | ||
|
||
__version__ = "0.6.0" | ||
|
||
# If we are on Windows, Python 3.8+ then we need to add a DLL search path | ||
# The libraries are located relative to this init file. | ||
if os.name == "nt": | ||
pymsis_dir = None | ||
pymsis_dir_libs = None | ||
try: | ||
# add folder to Windows DLL search paths | ||
pymsis_dir = Path(__file__).resolve().parent | ||
pymsis_dir_libs = pymsis_dir / ".libs" | ||
# This was added in Python 3.8, so we can default to this | ||
# once we only support 3.8+ | ||
os.add_dll_directory(pymsis_dir) | ||
# Additionally, we need the .libs directory which has gfortran | ||
os.add_dll_directory(pymsis_dir_libs) | ||
|
||
os.environ["PATH"] = f"{pymsis_dir};{pymsis_dir_libs};" f"{os.environ['PATH']}" | ||
except Exception: | ||
pass | ||
del pymsis_dir, pymsis_dir_libs | ||
__version__ = "0.6.0" |
Oops, something went wrong.