Skip to content

Commit

Permalink
use ruff w/shared actions, remove black, flake8, isort
Browse files Browse the repository at this point in the history
  • Loading branch information
rm03 committed Feb 18, 2024
1 parent e458eaf commit ae2dbd4
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 169 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build-and-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ on: push
jobs:
backend-check:
name: "Backend Check"
uses: pennlabs/shared-actions/.github/workflows/django.yaml@8785a7d7b9158d8d5705a0202f5695db2c0beb97
uses: pennlabs/shared-actions/.github/workflows/django.yaml@820cdfdf539ef3226566b5c9177e7d4b0b33e37d
with:
projectName: pennclubs
path: backend
pythonVersion: 3.11-bookworm
flake: true
black: true
flake: false
black: false
ruff: true

frontend-check:
name: "Frontend Check"
Expand Down
5 changes: 0 additions & 5 deletions backend/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@ url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
black = "*"
unittest-xml-reporting = ">=3.0.2"
flake8 = "*"
flake8-isort = "*"
isort = "*"
flake8-quotes = "*"
django-debug-toolbar = "*"
django-extensions = "*"
ruff = "*"
Expand Down
174 changes: 19 additions & 155 deletions backend/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions backend/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
[tool.ruff]
exclude = [
".venv",
"migrations",
]
lint.ignore = ["E203"]
exclude = [".venv", "migrations"]
line-length = 88
lint.select = [

[tool.ruff.lint]
ignore = ["E203"]
select = [
"E",
"F",
"Q",
Expand Down

0 comments on commit ae2dbd4

Please sign in to comment.