From c897186ff022a6ba783d0ea07c9a6d32be6daac3 Mon Sep 17 00:00:00 2001 From: Pearoo <63553775+rnxm@users.noreply.github.com> Date: Sat, 20 Sep 2025 14:25:51 +0200 Subject: [PATCH 1/2] remove PR check --- .github/workflows/format_with_ruff.yml | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) 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 From b3637a3029b7576ef19653babdb5cb9adfa5bc51 Mon Sep 17 00:00:00 2001 From: Pearoo <63553775+rnxm@users.noreply.github.com> Date: Sat, 20 Sep 2025 14:34:08 +0200 Subject: [PATCH 2/2] don't add useless files to docker --- .dockerignore | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .dockerignore 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