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

[STY] apply black 24.1.0 #1688

Merged
merged 1 commit into from
Jan 26, 2024
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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:
- id: check-added-large-files
- id: check-case-conflict
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.1.0
hooks:
- id: black
files: ^tools/(?!schemacode)
Expand Down
1 change: 1 addition & 0 deletions tools/examplecode/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""A Python package to render BIDS example with tree like output."""

from examplecode.example import DirectoryTree

__all__ = [
Expand Down
1 change: 1 addition & 0 deletions tools/mkdocs_macros_bids/macros.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Functions used by the macros mkdocs plugin."""

import os
import sys

Expand Down
1 change: 1 addition & 0 deletions tools/mkdocs_macros_bids/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Functions decorated in "define_env()" are callable throughout the
specification and are run/rendered with the mkdocs plugin "macros".
"""

import os
import sys

Expand Down
1 change: 1 addition & 0 deletions tools/pull_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
https://github.com/alan-turing-institute/the-turing-way/blob/af98c94/tests/pull_files.py

"""

import argparse

import requests
Expand Down
1 change: 1 addition & 0 deletions tools/schemacode/bidsschematools/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

.. autofunction:: load_resource
"""

import atexit
import os
from contextlib import ExitStack
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Simple validation tests on schema rules."""

import warnings
from collections.abc import Mapping

Expand Down
1 change: 1 addition & 0 deletions tools/schemacode/bidsschematools/expressions.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Parsing utilities for BIDS Schema expression language
"""

from functools import partial

from pyparsing import (
Expand Down
1 change: 1 addition & 0 deletions tools/schemacode/bidsschematools/render/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Functions for rendering elements of the schema in the specification text."""

from bidsschematools.render.tables import (
make_columns_table,
make_entity_table,
Expand Down
1 change: 1 addition & 0 deletions tools/schemacode/bidsschematools/render/tables.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Functions for rendering portions of the schema as text."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions tools/schemacode/bidsschematools/render/text.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Functions for rendering portions of the schema as text."""

import logging
import os

Expand Down
1 change: 1 addition & 0 deletions tools/schemacode/bidsschematools/render/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utility functions for specification rendering tools."""

import math
import posixpath

Expand Down
1 change: 1 addition & 0 deletions tools/schemacode/bidsschematools/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
This module is currently limited to constructing filename rules from
``schema.rules.files``.
"""

import re
import typing as ty
from collections.abc import Mapping
Expand Down
1 change: 1 addition & 0 deletions tools/schemacode/bidsschematools/schema.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Schema loading- and processing-related functions."""

import logging
import os
import re
Expand Down
1 change: 1 addition & 0 deletions tools/schemacode/bidsschematools/tests/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

.. autofunction:: load_test_data
"""

from ...data import Loader

__all__ = ("load_test_data",)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the bidsschematools package."""

from bidsschematools.render import tables


Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the bidsschematools package."""

import os

import pytest
Expand Down
1 change: 1 addition & 0 deletions tools/schemacode/bidsschematools/tests/test_schema.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the bidsschematools package."""

import os
from collections.abc import Mapping

Expand Down
1 change: 1 addition & 0 deletions tools/schemacode/bidsschematools/types/namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
YAML files available as a single dictionary and allow attribute (``.``)
lookups.
"""

import json
import typing as ty
from collections.abc import ItemsView, KeysView, Mapping, MutableMapping, ValuesView
Expand Down
1 change: 1 addition & 0 deletions tools/schemacode/bidsschematools/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utility functions for the bids-specification schema."""

import logging

from . import data
Expand Down