Skip to content

Commit

Permalink
Update versioneer: 0.18 → 0.20
Browse files Browse the repository at this point in the history
Fix LGTM.com error: Suspicious unused loop iteration variable
For loop variable 'i' is not used in the loop body.
  • Loading branch information
DimitriPapadopoulos committed Sep 17, 2021
1 parent b98b8db commit 5becfc2
Show file tree
Hide file tree
Showing 7 changed files with 623 additions and 262 deletions.
7 changes: 4 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ jobs:
name: test python
command: |
conda activate testenv
pytest --doctest-modules bids-validator/bids_validator
flake8 bids-validator/bids_validator
pydocstyle bids-validator/bids_validator/bids_validator.py
cd bids-validator
pytest --doctest-modules bids_validator
flake8 bids_validator
pydocstyle bids_validator/bids_validator.py
test:
docker:
- image: node:12.16.1
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/python_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,11 @@ jobs:
- name: Check formatting
shell: bash -l {0}
run: |
flake8 bids-validator/bids_validator
pydocstyle bids-validator/bids_validator/bids_validator.py
cd bids-validator
flake8 bids_validator
pydocstyle bids_validator/bids_validator.py
- name: Test with pytest
shell: bash -l {0}
run: |
pytest --doctest-modules bids-validator/bids_validator --verbose
cd bids-validator
pytest --doctest-modules bids_validator --verbose
3 changes: 3 additions & 0 deletions bids-validator/.codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@ checks:
plugins:
duplication:
enabled: true
exclude_patterns:
- "versioneer.py"
- "_version.py"
config:
count_threshold: 3
6 changes: 3 additions & 3 deletions bids-validator/bids_validator/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""BIDS validator common Python package."""
from ._version import get_versions
from .bids_validator import BIDSValidator
__version__ = get_versions()['version']
__all__ = ['BIDSValidator']
del get_versions

from . import _version
__version__ = _version.get_versions()['version']
Loading

0 comments on commit 5becfc2

Please sign in to comment.