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

Open
wants to merge 2 commits into
base: next
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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-added-large-files
args: [--maxkb=8192]
Expand All @@ -11,7 +11,7 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.8
rev: v0.8.2
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
1 change: 1 addition & 0 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import numpy as np
import pytest

from garnet.reduction.integration import PeakEllipsoid, PeakSphere
from garnet.reduction.plan import ReductionPlan

Expand Down
1 change: 1 addition & 0 deletions tests/test_normalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import subprocess

import pytest

from garnet.reduction.normalization import Normalization
from garnet.reduction.plan import ReductionPlan

Expand Down
1 change: 1 addition & 0 deletions tests/test_plan.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os

import pytest

from garnet.reduction.integration import Integration
from garnet.reduction.normalization import Normalization
from garnet.reduction.plan import ReductionPlan
Expand Down
1 change: 1 addition & 0 deletions tests/test_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import numpy as np
import scipy.linalg
import scipy.spatial

from garnet.plots.peaks import PeakPlot, RadiusPlot
from garnet.plots.volume import SlicePlot
from garnet.reduction.integration import PeakEllipsoid, PeakSphere
Expand Down
3 changes: 2 additions & 1 deletion tests/test_ub.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import numpy as np
from garnet.reduction.ub import Optimization
from mantid.simpleapi import AddPeakHKL, CreatePeaksWorkspace, SetUB

from garnet.reduction.ub import Optimization


def create_peaks(name, a, b, c, alpha, beta, gamma):
CreatePeaksWorkspace(NumberOfPeaks=0, OutputType="LeanElasticPeak", OutputWorkspace=name)
Expand Down
3 changes: 2 additions & 1 deletion tests/test_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
import subprocess
import sys

import garnet.workflow
import pytest

import garnet.workflow
from garnet.workflow import main as main


Expand Down
Loading