Skip to content
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
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: check-ast
- id: check-case-conflict
Expand All @@ -17,32 +17,32 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/pycqa/isort
rev: 6.0.1
rev: 9.0.0b1
hooks:
- id: isort
args: [--profile, black, --settings-path, pyproject.toml]

- repo: https://github.com/asottile/pyupgrade
rev: v3.19.1
rev: v3.21.2
hooks:
- id: pyupgrade
args: [--py39-plus]

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.1.0
rev: 26.5.1
hooks:
- id: black
args: [--config, pyproject.toml]

- repo: https://github.com/adamchainz/blacken-docs
rev: 1.19.1
rev: 1.20.0
hooks:
- id: blacken-docs
additional_dependencies:
- black==23.9.1

- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
rev: v2.4.3
hooks:
- id: codespell
args: [--toml, pyproject.toml]
Expand All @@ -55,7 +55,7 @@ repos:
args: [--mapping, '4', --sequence, '4', --offset, '0']

- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.14.0
rev: v2.16.0
hooks:
- id: pretty-format-toml
args: [--autofix, --indent, '4']
Expand All @@ -66,7 +66,7 @@ repos:
- id: rst-backticks

- repo: https://github.com/pyCQA/flake8
rev: 7.1.2
rev: 7.3.0
hooks:
- id: flake8
args: [--config, .flake8, --verbose, nidmresults, examples]
Expand Down
1 change: 0 additions & 1 deletion nidmresults/cli/nidm_mkda_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
@copyright: University of Warwick 2013-2014
"""


import argparse
import os
import sys
Expand Down
1 change: 0 additions & 1 deletion nidmresults/cli/nidmreader.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
@copyright: University of Warwick 2013-2014
"""


import argparse
import os
import sys
Expand Down
8 changes: 3 additions & 5 deletions nidmresults/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def __init__(

# Query the RDF document and create the objects
self.software = self.load_software()
(self.bundle, self.exporter, self.export_act, self.export_time) = (
self.bundle, self.exporter, self.export_act, self.export_time = (
self.load_bundle_export()
)
self.model_fittings = self.load_modelfitting()
Expand Down Expand Up @@ -192,10 +192,8 @@ def get_info(self):
# nidm-results pack, this should
# be stated explicitly in the spec?
if len(self.model_fittings) > 1:
raise Exception(
"Can't handle NIDM-Results packs with \
multiple model parameter estimation activities"
)
raise Exception("Can't handle NIDM-Results packs with \
multiple model parameter estimation activities")

self.info["NeuroimagingAnalysisSoftware_type"] = self.software.name
self.info["NeuroimagingAnalysisSoftware_softwareVersion"] = (
Expand Down
6 changes: 2 additions & 4 deletions nidmresults/objects/constants_rdflib.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@
SPM = Namespace("http://purl.org/nidash/spm#")
FSL = Namespace("http://purl.org/nidash/fsl#")
RDFS = Namespace("http://www.w3.org/2000/01/rdf-schema#")
CRYPTO = Namespace(
"http://id.loc.gov/vocabulary/preservation/\
cryptographicHashFunctions#"
)
CRYPTO = Namespace("http://id.loc.gov/vocabulary/preservation/\
cryptographicHashFunctions#")
DC = Namespace("http://purl.org/dc/elements/1.1/")
DCT = Namespace("http://purl.org/dc/terms/")
OWL = Namespace("http://www.w3.org/2002/07/owl#")
Expand Down
1 change: 1 addition & 0 deletions nidmresults/test/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
@author: Camille Maumet <c.m.j.maumet@warwick.ac.uk>, Satrajit Ghosh
@copyright: University of Warwick 2014
"""

import glob
import json
import logging
Expand Down
1 change: 1 addition & 0 deletions test/test_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@author: Camille Maumet <c.m.j.maumet@warwick.ac.uk>
@copyright: University of Warwick 2013-2015
"""

from __future__ import annotations

import os
Expand Down
Loading