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 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