Skip to content

Commit

Permalink
Merge pull request #10
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
wcxve authored Mar 19, 2024
2 parents 45f7736 + 135c69c commit c6c24ac
Show file tree
Hide file tree
Showing 17 changed files with 19 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ repos:
- id: end-of-file-fixer
exclude_types: [json, binary]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.15"
rev: "v0.3.3"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.15"
rev: "v0.3.3"
hooks:
- id: ruff-format
- repo: https://github.com/kynan/nbstripout
rev: "0.6.1"
rev: "0.7.1"
hooks:
- id: nbstripout
1 change: 1 addition & 0 deletions src/elisa/data/grouping.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Methods for grouping spectrum."""

from __future__ import annotations

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions src/elisa/data/ogip.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Containers of OGIP/92-007 format data."""

from __future__ import annotations

import re
Expand Down
1 change: 1 addition & 0 deletions src/elisa/infer/fit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Model fit in maximum likelihood or Bayesian way."""

from __future__ import annotations

import time
Expand Down
1 change: 1 addition & 0 deletions src/elisa/infer/likelihood.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Likelihood functions."""

from __future__ import annotations

from typing import Callable, Literal, get_args
Expand Down
1 change: 1 addition & 0 deletions src/elisa/infer/lrt.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
"""Model comparison based on likelihood ratio test."""

from __future__ import annotations
1 change: 1 addition & 0 deletions src/elisa/infer/results.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Subsequent analysis of maximum likelihood or Bayesian fit."""

from __future__ import annotations

from abc import ABC, abstractmethod
Expand Down
1 change: 1 addition & 0 deletions src/elisa/models/add.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Additive models."""

from __future__ import annotations

import jax.numpy as jnp
Expand Down
1 change: 1 addition & 0 deletions src/elisa/models/conv.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Convolution models."""

from __future__ import annotations

from abc import abstractmethod
Expand Down
1 change: 1 addition & 0 deletions src/elisa/models/model.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The spectral model bases."""

from __future__ import annotations

import inspect
Expand Down
1 change: 1 addition & 0 deletions src/elisa/models/mul.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Multiplicative models."""

from __future__ import annotations

import jax.numpy as jnp
Expand Down
1 change: 1 addition & 0 deletions src/elisa/models/parameter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The parameter."""

from __future__ import annotations

from abc import ABC, abstractmethod
Expand Down
1 change: 1 addition & 0 deletions src/elisa/plot/corner.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Corner plot."""

from __future__ import annotations

import matplotlib.pyplot as plt
Expand Down
1 change: 1 addition & 0 deletions src/elisa/util/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Helper functions for computation environment configuration."""

from __future__ import annotations

import warnings
Expand Down
1 change: 1 addition & 0 deletions src/elisa/util/integrate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Numerical integration."""

from __future__ import annotations

from typing import Any, Callable, Literal, get_args
Expand Down
1 change: 1 addition & 0 deletions src/elisa/util/misc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Miscellaneous helper functions."""

from __future__ import annotations

import re
Expand Down
1 change: 1 addition & 0 deletions src/elisa/util/typing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Typing aliases to shorten hints."""

from typing import Callable, TypeVar, Union

import numpy as np
Expand Down

0 comments on commit c6c24ac

Please sign in to comment.