Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
repos:
# Sort order of Python imports
- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
# Python code formatting
- repo: https://github.com/psf/black
rev: 23.1.0
rev: 24.4.2
hooks:
- id: black
# Remove unused Python imports
- repo: https://github.com/PyCQA/autoflake
rev: v2.0.2
rev: v2.3.1
hooks:
- id: autoflake
args: ["--in-place", "--remove-all-unused-imports", "--ignore-init-module-imports"]
# Run mypy type validation
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v1.1.1'
rev: 'v1.10.0'
hooks:
- id: mypy
exclude: ^src/demcmc/tests|^doc/tutorials
additional_dependencies: [types-setuptools]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.6.0
hooks:
- id: check-yaml

- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
rev: v2.2.6
hooks:
- id: codespell
args: ['--toml pyproject.toml']
1 change: 1 addition & 0 deletions doc/tutorials/plot_synthetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
This page contains a tutorial, stepping the user through estimating a DEM.
We don't use any real data here, but instead a series of fake lines that have Gaussian contribution functions.
"""

##################################################################
# Start by importing the required modules
import astropy.units as u
Expand Down
1 change: 1 addition & 0 deletions src/demcmc/dem.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Classes for working with DEM data.
"""

from __future__ import annotations

from dataclasses import dataclass
Expand Down
1 change: 1 addition & 0 deletions src/demcmc/emission.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Structures for storing and working with emission lines.
"""

import functools
from abc import ABC, abstractmethod, abstractproperty
from dataclasses import dataclass
Expand Down
1 change: 1 addition & 0 deletions src/demcmc/mcmc.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Functions for carrying out MCMC estimation of DEMs.
"""

from typing import List, Sequence, Tuple

import emcee
Expand Down
1 change: 1 addition & 0 deletions src/demcmc/sample_data.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Load sample data.
"""

from pathlib import Path
from typing import Tuple

Expand Down
1 change: 1 addition & 0 deletions src/demcmc/units.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Definition of global units used throughout demcmc.
"""

import astropy.units as u

u_temp = u.K
Expand Down
Loading