Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #8

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.2"
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.2"
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
4 changes: 2 additions & 2 deletions src/elisa/infer/analysis.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Subsequent analysis of likelihood or Bayesian fit."""

from __future__ import annotations

from collections.abc import Sequence
Expand Down Expand Up @@ -388,8 +389,7 @@ def boot(

def plot_data(
self, plots='data ldata chi pchi deviance pit ne ene eene fv vfv'
):
...
): ...

def plot_corner(self):
# correlation map or bootstrap distribution
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 with goodness term."""

from __future__ import annotations

import jax
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/simulation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Data simulation and fit."""

from __future__ import annotations

from typing import TYPE_CHECKING, Callable
Expand Down
1 change: 1 addition & 0 deletions src/elisa/infer/util.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Helper functions for inference module."""

from __future__ import annotations


Expand Down
1 change: 1 addition & 0 deletions src/elisa/model/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/model/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/model/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/model/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/model/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 ABCMeta, 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