diff --git a/.github/workflows/bandit.yaml b/.github/workflows/bandit.yaml new file mode 100644 index 00000000..cbc8abb2 --- /dev/null +++ b/.github/workflows/bandit.yaml @@ -0,0 +1,12 @@ +on: [push] + +jobs: + bandit: + runs-on: ubuntu-latest + name: "bandit" + steps: + - uses: davidslusser/actions_python_bandit@v1.0.0 + with: + src: "src" + options: "-c pyproject.toml -r" + python_version: "3.11" diff --git a/.github/workflows/black.yaml b/.github/workflows/black.yaml new file mode 100644 index 00000000..6ceb8824 --- /dev/null +++ b/.github/workflows/black.yaml @@ -0,0 +1,12 @@ +on: [push] + +jobs: + black: + runs-on: ubuntu-latest + name: "black" + steps: + - uses: davidslusser/actions_python_black@v1.0.0 + with: + src: "src" + options: "" + python_version: "3.11" diff --git a/.github/workflows/ruff.yaml b/.github/workflows/ruff.yaml new file mode 100644 index 00000000..6e39103e --- /dev/null +++ b/.github/workflows/ruff.yaml @@ -0,0 +1,12 @@ +on: [push] + +jobs: + ruff: + runs-on: ubuntu-latest + name: "ruff" + steps: + - name: actions_python_ruff + uses: davidslusser/actions_python_ruff@v1.0.0 + with: + src: "src" + options: "-v" \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000..95659a2f --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,12 @@ +[tool.bandit] +exclude_dirs = [".venv", "venv", "src/*/tests"] + + +[tool.black] +line-length = 120 +exclude = """manage.py|migrations""" + + +[tool.ruff] +line-length = 120 +exclude = ["src/*/migrations", "src/manage.py"]