diff --git a/.github/workflows/python-yapf.yml b/.github/workflows/python-yapf.yml new file mode 100644 index 000000000..9639171db --- /dev/null +++ b/.github/workflows/python-yapf.yml @@ -0,0 +1,12 @@ +name: YAPF Formatting Check +on: [push] +jobs: + formatting-check: + name: Formatting Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: run YAPF to test if python code is correctly formatted + uses: AlexanderMelde/yapf-action@master + with: + args: --verbose diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 000000000..32d6458ca --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[tool.pytest.ini_options] +DJANGO_SETTINGS_MODULE = "freesound.settings" +addopts = "" \ No newline at end of file