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

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 @@ -3,7 +3,7 @@
exclude: ^quicknxs/interfaces/generated/
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: check-docstring-first
Expand All @@ -20,11 +20,11 @@ repos:
- id: end-of-file-fixer
- id: sort-simple-yaml
- repo: https://github.com/psf/black
rev: 22.10.0
rev: 24.10.0
hooks:
- id: black
args: ['--line-length=119']
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 7.1.1
hooks:
- id: flake8
2 changes: 1 addition & 1 deletion quicknxs/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
General settings
"""


# standard imports
import json
import os
Expand All @@ -13,6 +12,7 @@

class Settings(object):
r"""Singleton object containing the GUI settings as a dictionary"""

_instance = None

def __new__(cls, *args, **kwargs):
Expand Down
1 change: 1 addition & 0 deletions quicknxs/interfaces/data_handling/data_info.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Meta-data information for MR reduction
"""

# pylint: disable=too-few-public-methods, wrong-import-position, too-many-instance-attributes, wrong-import-order

import sys
Expand Down
1 change: 1 addition & 0 deletions quicknxs/interfaces/data_handling/data_manipulation.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Methods used to process data, usually calling Mantid
"""

# pylint: disable=invalid-name, too-many-instance-attributes, line-too-long, multiple-statements, bare-except, protected-access, wrong-import-position

import sys
Expand Down
1 change: 1 addition & 0 deletions quicknxs/interfaces/data_handling/data_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Loader for event nexus files.
Uses Mantid Framework
"""

# pylint: disable=invalid-name, too-many-instance-attributes, line-too-long, multiple-statements, bare-except, wrong-import-order, \
# too-many-locals, too-few-public-methods, wrong-import-position, too-many-public-methods

Expand Down
3 changes: 2 additions & 1 deletion quicknxs/interfaces/data_handling/filepath.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Classes to handle string representations of sets of run numbers and absolute paths to data files
"""


# standard imports
import itertools
import operator
Expand All @@ -15,6 +14,7 @@ class RunNumbers(object):
A helper class to handle string representations of one or more run numbers. It translates from a
string representation to a list of run numbers, and viceversa
"""

merge_symbol = "+"
range_symbol = ":"

Expand Down Expand Up @@ -110,6 +110,7 @@ class FilePath(object):

NOTE: Paths are sorted
"""

merge_symbol = "+"

@classmethod
Expand Down
1 change: 1 addition & 0 deletions quicknxs/interfaces/data_handling/instrument.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
that is instrument-specific and abstracts out how we obtain
information from the data file
"""

# pylint: disable=invalid-name, too-many-instance-attributes, line-too-long, bare-except


Expand Down
1 change: 0 additions & 1 deletion quicknxs/interfaces/data_handling/peak_finding.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
All rights reserved.
"""


import math
import numpy as np

Expand Down
1 change: 1 addition & 0 deletions quicknxs/interfaces/data_handling/processing_workflow.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Data processing workflow, taking results and writing them to files.
"""

# pylint: disable=bare-except, too-many-locals

import sys
Expand Down
1 change: 1 addition & 0 deletions quicknxs/interfaces/event_handlers/widgets.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Zoo for customized simple widgets
"""

from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QVBoxLayout, QLabel, QPushButton


Expand Down
1 change: 1 addition & 0 deletions quicknxs/interfaces/reduction_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Dialog to select reduction options to choose which outputs are needed
and in which formats to write them.
"""

# pylint: disable=bare-except

import os
Expand Down
1 change: 1 addition & 0 deletions quicknxs/interfaces/result_viewer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Dialog to show final reduced data.
"""

# pylint: disable=bare-except

import logging
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def test_load_data_deadtime(data_server):

def test_mantid_algorithm_exec():
"""Test helper function mantid_algorithm_exec"""

# test wrong type of class
class TestNotMantidAlgo:
pass
Expand Down
Loading