Skip to content

Commit

Permalink
Use black and isort to autoformat the main package (#266)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
tsalo authored Sep 13, 2023
1 parent 71a7026 commit b8f5d47
Show file tree
Hide file tree
Showing 12 changed files with 1,573 additions and 1,216 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
python-version: '3.7'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade tox
pip install flake8 flake8-absolute-import flake8-black flake8-docstrings \
flake8-isort flake8-pyproject flake8-unused-arguments \
flake8-use-fstring pep8-naming
- name: Run linters
run: |
tox -e codespell
run: python -m flake8 cubids
10 changes: 7 additions & 3 deletions cubids/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
"""Top-level package for CuBIDS."""

__author__ = """PennLINC"""
__email__ = '[email protected]'
__version__ = '0.1.0'
__email__ = "[email protected]"
__version__ = "0.1.0"

from .cubids import CuBIDS
from cubids.cubids import CuBIDS

__all__ = [
"CuBIDS",
]
Loading

0 comments on commit b8f5d47

Please sign in to comment.