-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use new ruff config syntax and fix the errors
- Loading branch information
Showing
5 changed files
with
17 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,17 @@ | ||
import logging | ||
import os | ||
|
||
if not os.getenv("PY_ENV", "").startswith("test"): | ||
logging.basicConfig( | ||
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s", | ||
level=logging.DEBUG if os.getenv("ASTRO_PLASMA_DEBUG", "false") == "true" else logging.INFO, | ||
) | ||
logging.basicConfig( | ||
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s", | ||
level=logging.DEBUG if os.getenv("ASTRO_PLASMA_DEBUG", "false") == "true" else logging.INFO, | ||
) | ||
|
||
from .core import ionization, spectrum # noqa | ||
from .core.download_database import initialize_data # noqa | ||
from .core import ionization, spectrum # noqa: E721,E402 | ||
|
||
|
||
log = logging.getLogger(__name__) | ||
|
||
__all__ = ["Ionization", "EmissionSpectrum"] | ||
|
||
|
||
Ionization = ionization.Ionization() | ||
EmissionSpectrum = spectrum.EmissionSpectrum() |
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