Skip to content

Commit e02bca0

Browse files
committed
Merge remote-tracking branch 'upstream/main' into pytest
2 parents 36b4770 + c1040d4 commit e02bca0

6 files changed

Lines changed: 54 additions & 188 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ci:
33

44
repos:
55
- repo: https://github.com/pre-commit/pre-commit-hooks
6-
rev: v5.0.0
6+
rev: v6.0.0
77
hooks:
88
- id: trailing-whitespace
99
- id: end-of-file-fixer

.zenodo.json

Lines changed: 0 additions & 176 deletions
This file was deleted.

CITATION.cff

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# schema: https://github.com/citation-file-format/citation-file-format/blob/main/schema-guide.md
2+
3+
cff-version: 1.2.0
4+
5+
title: BIDS Validator - Python
6+
7+
license: MIT
8+
9+
type: software
10+
11+
repository-code: https://github.com/bids-standard/python-validator
12+
13+
message: >
14+
The bids-validator is a software tool to check neuroimaging datasets for adherence to the Brain Imaging Data Structure (BIDS) format.
15+
More information about BIDS can be found at <a href=\"https://bids.neuroimaging.io\">bids.neuroimaging.io</a>.
16+
17+
keywords:
18+
- brain imaging data structure
19+
- BIDS
20+
- neuroscience
21+
- neuroimaging
22+
- neuroinformatics
23+
24+
authors:
25+
- family-names: Markiewicz
26+
given-names: Christopher J.
27+
orcid: https://orcid.org/0000-0002-6533-164X
28+
affiliation: Stanford University
29+
- family-names: Brady
30+
given-names: Daniel
31+
orcid: https://orcid.org/0000-0003-4671-0676
32+
affiliation: University of Sheffield
33+
- family-names: Blair
34+
given-names: Ross
35+
orcid: https://orcid.org/0000-0003-3007-1056
36+
affiliation: Stanford University
37+
- family-names: Appelhoff
38+
given-names: Stefan
39+
orcid: https://orcid.org/0000-0001-8002-0877
40+
- family-names: Gau
41+
given-names: Rémi
42+
orcid: https://orcid.org/0000-0002-1535-9767
43+
- family-names: Gunalan
44+
given-names: Kabilar
45+
orcid: https://orcid.org/0000-0001-6964-4865
46+
affiliation: "McGovern Institute for Brain Research, Massachusetts Institute of Technology, Cambridge, MA, USA"
47+
- family-names: Hobson-Lowther
48+
given-names: Teal
49+
- family-names: Papadopoulos Orfanos
50+
given-names: Dimitri

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ strict = true
171171
exclude = [
172172
"^tests/data",
173173
]
174+
warn_unreachable = true
175+
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
174176

175177
[[tool.mypy.overrides]]
176178
module = 'bids_validator._version'

setup.cfg

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/bids_validator/types/files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class FileTree:
2626

2727
def __attrs_post_init__(self) -> None:
2828
if self.is_dir is None:
29-
object.__setattr__(self, 'is_dir', self.path_obj.is_dir())
29+
object.__setattr__(self, 'is_dir', self.path_obj.is_dir()) # type: ignore[unreachable]
3030
object.__setattr__(
3131
self,
3232
'children',

0 commit comments

Comments
 (0)