Skip to content

Commit a885aa1

Browse files
authored
Merge pull request #100 from neutrons/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents 68de6ba + e7b6460 commit a885aa1

15 files changed

Lines changed: 53 additions & 44 deletions

‎.pre-commit-config.yaml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ default_language_version:
88
repos:
99
# Run fast code improvement/checks before running PR specific helpers.
1010
- repo: https://github.com/pre-commit/pre-commit-hooks.git
11-
rev: v4.5.0
11+
rev: v6.0.0
1212
hooks:
1313
- id: trailing-whitespace
1414
args: [--markdown-linebreak-ext=md]
@@ -19,13 +19,13 @@ repos:
1919
- id: check-yaml
2020
- id: end-of-file-fixer
2121
- repo: https://github.com/rstcheck/rstcheck
22-
rev: v6.2.0
22+
rev: v6.2.5
2323
hooks:
2424
- id: rstcheck
2525
additional_dependencies: [sphinx]
2626

2727
- repo: https://github.com/astral-sh/ruff-pre-commit
28-
rev: v0.1.9
28+
rev: v0.15.5
2929
hooks:
3030
- id: ruff
3131
args: [--fix, --exit-non-zero-on-fix]

‎postprocessing/Configuration.py‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# pylint: disable=line-too-long, too-many-statements, too-few-public-methods, too-many-instance-attributes, invalid-name
22
"""
3-
Post-processing, ActiveMQ, and logging configuration
3+
Post-processing, ActiveMQ, and logging configuration
44
5-
The original code for this class was take from https://github.com/mantidproject/autoreduce
5+
The original code for this class was take from https://github.com/mantidproject/autoreduce
66
7-
@copyright: 2014 Oak Ridge National Laboratory
7+
@copyright: 2014 Oak Ridge National Laboratory
88
"""
9+
910
import sys
1011
import os
1112
import json

‎postprocessing/Consumer.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
66
@copyright: 2014 Oak Ridge National Laboratory
77
"""
8+
89
import json
910
import logging
1011
import time

‎postprocessing/PostProcessAdmin.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
1515
@copyright: 2014 Oak Ridge National Laboratory
1616
"""
17+
1718
import logging
1819
import json
1920
import socket

‎postprocessing/processors/base_processor.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""
2-
The base processor defines a base class to be used to process jobs.
3-
An input AMQ queue is defined. The post-processing client will
4-
automatically register with that queue upon starting.
2+
The base processor defines a base class to be used to process jobs.
3+
An input AMQ queue is defined. The post-processing client will
4+
automatically register with that queue upon starting.
55
6-
@copyright: 2014-2015 Oak Ridge National Laboratory
6+
@copyright: 2014-2015 Oak Ridge National Laboratory
77
"""
88

99
import os

‎postprocessing/processors/calvera_processor.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
2-
` Processor for Calvera cataloging
2+
` Processor for Calvera cataloging
33
4-
@copyright: 2023 Oak Ridge National Laboratory
4+
@copyright: 2023 Oak Ridge National Laboratory
55
"""
66

77
import copy
@@ -74,7 +74,7 @@ def _read_reduced_data(self, filepath):
7474
contents = json.load(f)
7575
if "input_files" not in contents or "output_files" not in contents:
7676
logging.info(
77-
"%s does not appear to be a JSON reduction file so will not " "send to Calvera",
77+
"%s does not appear to be a JSON reduction file so will not send to Calvera",
7878
filepath,
7979
)
8080
return None

‎postprocessing/processors/job_handling.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
"""
2-
Handling of job execution.
2+
Handling of job execution.
33
4-
@copyright: 2014 Oak Ridge National Laboratory
4+
@copyright: 2014 Oak Ridge National Laboratory
55
"""
6+
67
import logging
78
import subprocess
89
import os

‎postprocessing/processors/oncat_processor.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
"""
2-
Processor for ONCat cataloging
2+
Processor for ONCat cataloging
33
4-
@copyright: 2017 Oak Ridge National Laboratory
4+
@copyright: 2017 Oak Ridge National Laboratory
55
"""
6+
67
import os
78
import logging
89
import json

‎postprocessing/processors/oncat_reduced_processor.py‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
"""
2-
Processor for ONCat cataloging
2+
Processor for ONCat cataloging
33
4-
@copyright: 2017 Oak Ridge National Laboratory
4+
@copyright: 2017 Oak Ridge National Laboratory
55
"""
6+
67
import os
78
import logging
89
import json
@@ -57,7 +58,7 @@ def ingest(self, location):
5758
contents = json.load(f)
5859
if "input_files" not in contents or "output_files" not in contents:
5960
logging.info(
60-
"%s does not appear to be a JSON reduction file so will not " "call ONCat",
61+
"%s does not appear to be a JSON reduction file so will not call ONCat",
6162
location,
6263
)
6364
return

‎postprocessing/processors/test_processor.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
"""
2-
Test Processor
2+
Test Processor
33
4-
@copyright: 2014 Oak Ridge National Laboratory
4+
@copyright: 2014 Oak Ridge National Laboratory
55
"""
6+
67
from .base_processor import BaseProcessor
78
import json
89

0 commit comments

Comments
 (0)