Browse Source

pre-commit-hook: lint tests

Fabian Peter Hammerle 4 years ago
parent
commit
62c245c687
4 changed files with 6 additions and 2 deletions
  1. 1 1
      .githooks/pre-commit
  2. 2 0
      tests/tag_interface/test_id3.py
  3. 2 0
      tests/test_functions.py
  4. 1 1
      tests/test_track.py

+ 1 - 1
.githooks/pre-commit

@@ -5,4 +5,4 @@ set -ex
 pipenv clean
 pipenv sync --dev
 pipenv run pytest
-pipenv run pylint symuid --disable=fixme
+pipenv run pylint --disable=fixme symuid tests

+ 2 - 0
tests/tag_interface/test_id3.py

@@ -5,6 +5,8 @@ import pytest
 
 from symuid._tag_interface import ID3
 
+# pylint: disable=protected-access
+
 
 @pytest.mark.parametrize('track_name', ['id3v2.4-empty.mp3'])
 def test_get_track_path(tracks_dir_path, track_name):

+ 2 - 0
tests/test_functions.py

@@ -5,6 +5,8 @@ import pytz
 
 import symuid
 
+# pylint: disable=protected-access
+
 
 @pytest.mark.parametrize(('ts_sec', 'expected_dt'), [
     (1528795204,

+ 1 - 1
tests/test_track.py

@@ -6,7 +6,7 @@ import pytest
 
 import symuid
 
-# pylint: disable=redefined-outer-name
+# pylint: disable=redefined-outer-name,protected-access
 
 # TODO test aac / m4a itunes tags