From 98f4aeec5503a0834c2fcdda5e435b3090ea53e4 Mon Sep 17 00:00:00 2001 From: ONE-FM Dev Date: Thu, 14 May 2026 13:26:55 +0200 Subject: [PATCH 1/2] chore(WI-000785): add Ruff config to pyproject.toml Add Ruff configuration aligned with Frappe v15: - line-length: 110 - target-version: py310 - Lint rules: F, E, W, I, UP, B, RUF - Ignore rules aligned with Frappe conventions - Format: double quotes, tab indentation Task: WI-000785 --- pyproject.toml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index b757a53..894df18 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,3 +10,39 @@ use_parentheses = true ensure_newline_before_comments = true indent = "\t" profile = "black" + +[tool.ruff] +line-length = 110 +target-version = "py310" + +[tool.ruff.lint] +select = [ + "F", + "E", + "W", + "I", + "UP", + "B", + "RUF", +] +ignore = [ + "B017", + "B018", + "B023", + "B904", + "E101", + "E402", + "E501", + "E741", + "F401", + "F403", + "F405", + "F722", + "W191", +] +typing-modules = ["frappe.types.DF"] + +[tool.ruff.format] +quote-style = "double" +indent-style = "tab" +docstring-code-format = true From 597adb33ad6bc1bc6934794f335f4ebcf9a38717 Mon Sep 17 00:00:00 2001 From: ONE-FM Dev Date: Wed, 20 May 2026 13:46:31 +0200 Subject: [PATCH 2/2] fix(WI-000785): remove unrelated workflow changes --- .github/workflows/deploy-staging.yml | 32 -------------------- .github/workflows/deploy-test-production.yml | 32 -------------------- 2 files changed, 64 deletions(-) delete mode 100644 .github/workflows/deploy-staging.yml delete mode 100644 .github/workflows/deploy-test-production.yml diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml deleted file mode 100644 index 7ba357a..0000000 --- a/.github/workflows/deploy-staging.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Deploy CI/CD to Staging - -on: - push: - branches: - - staging - -jobs: - deploy: - runs-on: ubuntu-latest - timeout-minutes: 90 - - steps: - - name: Deploy to Staging - uses: appleboy/ssh-action@0ff4204d59e8e51228ff73bce53f80d53301dee2 # v1.2.5 - with: - host: ${{ secrets.STAGING_HOST }} - username: ${{ secrets.USERNAME }} - key: ${{ secrets.STAGING_KEY }} - port: 22 - command_timeout: 30m - script_stop: true - script: | - set -x - cd /home/frappe/frappe-bench/apps/wiki - git pull upstream staging - cd /home/frappe/frappe-bench - bench setup requirements wiki - bench migrate - bench build --app wiki - bench clear-cache - bench restart diff --git a/.github/workflows/deploy-test-production.yml b/.github/workflows/deploy-test-production.yml deleted file mode 100644 index 8190809..0000000 --- a/.github/workflows/deploy-test-production.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Deploy CI/CD to Test production - -on: - push: - branches: - - test-production - -jobs: - deploy: - runs-on: ubuntu-latest - timeout-minutes: 90 - - steps: - - name: Deploy to Test Production - uses: appleboy/ssh-action@0ff4204d59e8e51228ff73bce53f80d53301dee2 # v1.2.5 - with: - host: ${{ secrets.STAGING_HOST }} - username: ${{ secrets.USERNAME }} - key: ${{ secrets.STAGING_KEY }} - port: 22 - command_timeout: 30m - script_stop: true - script: | - set -x - cd /home/frappe/test-production/apps/wiki - git pull upstream test-production - cd /home/frappe/test-production - bench setup requirements wiki - bench migrate - bench build --app wiki - bench clear-cache - bench restart