Skip to content

Commit

Permalink
Add yapf checker
Browse files Browse the repository at this point in the history
  • Loading branch information
alastair committed Sep 19, 2023
1 parent cf01db8 commit 0abb295
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/python-yapf.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "freesound.settings"
addopts = ""

0 comments on commit 0abb295

Please sign in to comment.