Skip to content

Commit b8f5d47

Browse files
authored
Use black and isort to autoformat the main package (#266)
* Add linting job. * Run black and isort. * Keep working on formatting. * Forgot to install the linters... * Wrong code path. * Address style issues in cubids. * Address style issues in validator. * Update metadata_merge.py
1 parent 71a7026 commit b8f5d47

File tree

12 files changed

+1573
-1216
lines changed

12 files changed

+1573
-1216
lines changed

.github/workflows/lint.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
python-version: '3.7'
2020
- name: Install dependencies
2121
run: |
22-
python -m pip install --upgrade pip
23-
python -m pip install --upgrade tox
22+
pip install flake8 flake8-absolute-import flake8-black flake8-docstrings \
23+
flake8-isort flake8-pyproject flake8-unused-arguments \
24+
flake8-use-fstring pep8-naming
2425
- name: Run linters
25-
run: |
26-
tox -e codespell
26+
run: python -m flake8 cubids

cubids/__init__.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
"""Top-level package for CuBIDS."""
22

33
__author__ = """PennLINC"""
4-
__email__ = '[email protected]'
5-
__version__ = '0.1.0'
4+
__email__ = "[email protected]"
5+
__version__ = "0.1.0"
66

7-
from .cubids import CuBIDS
7+
from cubids.cubids import CuBIDS
8+
9+
__all__ = [
10+
"CuBIDS",
11+
]

0 commit comments

Comments
 (0)