Moved check audio file to utils and reformatted code #127
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: linters | |
on: [push, pull_request] | |
jobs: | |
black: | |
name: black | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: rickstaa/action-black@v1 | |
with: | |
black_args: ". --check" | |
isort: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: isort/isort-action@v1 | |
with: | |
configuration: "--check-only --diff --profile black" | |
mypy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: pip install mypy poetry && poetry install | |
- name: PYTHONPATH set | |
run: echo "PYTHONPATH=$(pwd)/wimudp/watermarking" >> $GITHUB_ENV | |
- name: Mypy check | |
run: poetry run mypy --disable-error-code=import-untyped ./wimudp/ | |
flake8: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Flake8 check | |
run: pip install flake8 && flake8 --max-line-length 120 ./wimudp/ | |
pylint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: pip install mypy poetry && poetry install | |
- name: PYTHONPATH set | |
run: echo "PYTHONPATH=$(pwd)/wimudp/watermarking" >> $GITHUB_ENV | |
- name: Pylint check | |
run: poetry run pylint --max-line-length=120 ./wimudp/ |