From 50d5dd39a228f4988a72148689ee1aa141fef296 Mon Sep 17 00:00:00 2001 From: Verum Date: Sat, 7 Mar 2026 01:30:16 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A2=D0=B5=D1=81=D1=82:=20=D1=84=D0=BE=D1=80?= =?UTF-8?q?=D0=BC=D0=B0=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=BA=D0=BE=D0=B4=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/format_code.yml | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitea/workflows/format_code.yml diff --git a/.gitea/workflows/format_code.yml b/.gitea/workflows/format_code.yml new file mode 100644 index 0000000..a08e8d0 --- /dev/null +++ b/.gitea/workflows/format_code.yml @@ -0,0 +1,33 @@ +# ============================================================ +# Auto format code +# ============================================================ + +name: Auto Format + +on: + pull_request: + +jobs: + + format: + name: Format code + runs-on: ubuntu-latest + + steps: + + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install formatter + run: pip install ruff + + # Автоматическое форматирование + - name: Run formatter + run: ruff format . + + # Проверка что после форматирования нет изменений + - name: Check formatting + run: ruff check .