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

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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ default_language_version:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
Expand All @@ -17,13 +17,13 @@ repos:
- id: check-yaml

- repo: https://github.com/psf/black
rev: 22.12.0
rev: 24.10.0
hooks:
- id: black
exclude: test/data

- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 7.1.1
hooks:
- id: flake8
exclude: dev-docs|docs|versioneer.py|RefRed/_version.py|create_graph.py|test/data
Expand Down
1 change: 1 addition & 0 deletions RefRed/calculations/check_list_run_compatibility_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
1: Direct beam data <class 'RefRed.calculations.lr_data.LRData'>
2: Reduction options <class 'RefRed.lconfigdataset.LConfigDataset'>
"""

# import logging
import RefRed.colors
from qtpy import QtCore, QtGui
Expand Down
1 change: 1 addition & 0 deletions RefRed/configuration/global_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ class GlobalSettings(BaseModel):

See `DeadTimeSettingsModel` for an example
"""

pass
1 change: 1 addition & 0 deletions RefRed/decorators.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'''
Module for useful decorators
'''

from qtpy import QtGui, QtCore, QtWidgets
from RefRed import WINDOW_TITLE
from functools import wraps
Expand Down
2 changes: 2 additions & 0 deletions RefRed/gui_handling/data_norm_spinboxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ class DataBackSpinbox(object):
entry_type
One of "back" or "back2", denoting the first or the second background ROI's
"""

parent = None

def __init__(self, parent: QWidget, entry_type: str = 'back'):
Expand Down Expand Up @@ -155,6 +156,7 @@ class NormBackSpinbox(object):
entry_type
One of "back" or "back2", denoting the first or the second background ROI's
"""

parent = None

def __init__(self, parent: QWidget, entry_type: str = "back"):
Expand Down
2 changes: 2 additions & 0 deletions RefRed/gui_handling/observer.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ class SpinBoxObserver:
QUANTUM : int
The minimum allowed change in value for any of the registered QSpinBox objects
"""

NAN: int = -1
QUANTUM: int = 1

@dataclass
class RegistryEntry:
r"""Helper class to encapsulate entries in the registry of SpinBoxObserver._registry"""

spin_box: QSpinBox
last_value: int

Expand Down
1 change: 1 addition & 0 deletions RefRed/reduction/individual_reduction_settings_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
is saved if it's not used here. It creates confusion as to where we should
keep this information.
"""

# standard imports
from typing import Any, List, Optional

Expand Down
1 change: 1 addition & 0 deletions RefRed/sf_calculator/lr_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Notes from review: This class does a subset of what is done in calculations.lr_data.
This code is probably not needed.
"""

from mantid.simpleapi import Rebin
import numpy as np
import logging
Expand Down
1 change: 1 addition & 0 deletions RefRed/sf_calculator/sf_calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Scaling factor calculator
TODO: This need major cleanup
"""

import sys
import os
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions RefRed/status_message_handler.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
TODO: refactor this
"""

import sys
import time
from qtpy import QtCore
Expand Down
1 change: 1 addition & 0 deletions RefRed/tabledata.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

class TableDataColumIndex(Enum):
r"""Enumeration to associate each column index of a TableData instance with a word"""

LR_DATA = 0
LR_NORM = 1
LR_CONFIG = 2
Expand Down
Loading