Commit 76fae28e authored by Jan Kiene's avatar Jan Kiene
Browse files

add static analysis jobs

parent 41c528e9
Loading
Loading
Loading
Loading
Loading
+23 −0
Original line number Diff line number Diff line
@@ -17,6 +17,10 @@ default:
  - cd $dir


# ------------------------------------
# functionality tests
# ------------------------------------

# test the format conversion only
test_audiotools_convert:
  tags:
@@ -31,3 +35,22 @@ test_processing:
  script:
    - *get-codec-binaries
    - python3 -m pytest -n auto tests/test_processing.py

# ------------------------------------
# static analysis/formatting tests
# ------------------------------------

lint:
  tags:
    - linux
  allow_failure: true
  script:
    - flake8 --max-line-length 88 --extend-ignore=E203,E501,E741

format:
  tags:
    - linux
  allow_failure: true
  script:
    - isort --df --check --color --profile black .
    - black --diff --check .