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 #292

Merged
merged 2 commits into from
Feb 21, 2024
Merged
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
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: check-docstring-first
Expand All @@ -25,12 +25,12 @@ repos:
- id: end-of-file-fixer
- id: sort-simple-yaml
- repo: https://github.com/psf/black
rev: 23.3.0
rev: 24.2.0
hooks:
- id: black
args: ['--line-length=119']
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.31.0
rev: v1.35.1
hooks:
- id: yamllint
name: yamllint
Expand All @@ -39,6 +39,6 @@ repos:
language: python
types: [file, yaml]
- repo: https://github.com/kynan/nbstripout
rev: 0.6.1
rev: 0.7.1
hooks:
- id: nbstripout
1 change: 1 addition & 0 deletions src/imars3d/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""iMars3D: a Python package for neutron imaging and tomography reconstruction."""

import logging
from .backend import corrections, diagnostics, dataio, morph, preparation, reconstruction # noqa: F401

Expand Down
1 change: 1 addition & 0 deletions src/imars3d/backend/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""iMars3D's backend packages: the core of the application."""

from .autoredux import auto_reduction_ready # noqa: F401
from .autoredux import load_template_config # noqa: F401
from .autoredux import extract_info_from_path # noqa: F401
Expand Down
1 change: 1 addition & 0 deletions src/imars3d/backend/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

The built-in help will give the options when supplied a ``--help`` flag.
"""

from imars3d.backend.workflow.engine import WorkflowEngineAuto
import logging
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions src/imars3d/backend/dataio/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
"""data handling module for iMars3D."""

from . import data # noqa: F401
1 change: 1 addition & 0 deletions tests/unit/backend/corrections/test_beam_hardening.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Unit test for beam hardening correction"""

#!/usr/bin/env python
import numpy as np
import pytest
Expand Down
4 changes: 4 additions & 0 deletions tests/unit/backend/workflow/test_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

class load_data(ParameterizedFunction):
r"""mock loading a set of radiographs into a numpy array"""

ct_files = Parameter(default=None)
ct_dir = StringParam(default=None)

Expand All @@ -25,6 +26,7 @@ def __call__(self, **params):

class save_data(ParameterizedFunction):
r"""mock saving a set or radiographs to some directory"""

ct = Parameter(default=None)
workingdir = Parameter()

Expand All @@ -41,6 +43,7 @@ def __call__(self, **params):

class reconstruction(ParameterizedFunction):
r"""mock the reconstruction of the radiographs"""

ct = Parameter(default=None)
rot_center = Parameter(default=None)

Expand All @@ -52,6 +55,7 @@ def __call__(self, **params):

class reconstruction_with_default(ParameterizedFunction):
r"""mock the reconstruction of the radiographs"""

ct = Parameter(default=None)
rot_center = Parameter(default=0.0)

Expand Down
Loading