Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.env.example
.gitignore
CODE_OF_CONDUCT.md
compose.yml
crowdin.yml
Dockerfile
README.md
SECURITY.md
17 changes: 2 additions & 15 deletions .github/workflows/format_with_ruff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: 🗞️ Format using Ruff
on:
push:
branches:
- "*"
pull_request:
- "dev"

jobs:
format:
Expand Down Expand Up @@ -34,8 +33,7 @@ jobs:
- name: Run Ruff Format
run: ruff format --config pyproject.toml .

- name: Auto-commit on `dev` branch
if: github.ref == 'refs/heads/dev'
- name: Auto-commit
run: |
if [[ `git status --porcelain` ]]; then
git config user.name "github-actions[bot]"
Expand All @@ -45,15 +43,4 @@ jobs:
git push "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git" HEAD:dev --force
else
echo "Code was formatted successfully"
fi

- name: Fail check on PR if formatting needed
if: github.event_name == 'pull_request' && github.ref != 'refs/heads/dev'
run: |
if [[ `git status --porcelain` ]]; then
echo "❌ Formatting issues found. Please run 'ruff format .' locally."
git diff
exit 1
else
echo "✅ Code is properly formatted."
fi