diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..0f08f77 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,8 @@ +.env.example +.gitignore +CODE_OF_CONDUCT.md +compose.yml +crowdin.yml +Dockerfile +README.md +SECURITY.md \ No newline at end of file diff --git a/.github/workflows/format_with_ruff.yml b/.github/workflows/format_with_ruff.yml index 33c7301..1e50a9d 100644 --- a/.github/workflows/format_with_ruff.yml +++ b/.github/workflows/format_with_ruff.yml @@ -2,8 +2,7 @@ name: 🗞️ Format using Ruff on: push: branches: - - "*" - pull_request: + - "dev" jobs: format: @@ -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]" @@ -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 \ No newline at end of file