diff --git a/.github/workflows/delete-branch.yml b/.github/workflows/delete-branch.yml index 56d5a61..842424c 100644 --- a/.github/workflows/delete-branch.yml +++ b/.github/workflows/delete-branch.yml @@ -13,7 +13,6 @@ jobs: runs-on: ubuntu-latest steps: - name: Delete merged branch - run: gh branch delete ${{ github.head_ref }} + run: gh api -X DELETE repos/${{ github.repository }}/git/refs/heads/${{ github.head_ref }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - \ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..50cfcce --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,29 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v6.0.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-yaml + - id: check-added-large-files + + - repo: https://github.com/psf/black + rev: 25.9.0 + hooks: + - id: black + + - repo: https://github.com/pycqa/isort + rev: 6.1.0 + hooks: + - id: isort + + - repo: https://github.com/pycqa/flake8 + rev: 7.3.0 + hooks: + - id: flake8 + + - repo: https://github.com/pycqa/pylint + rev: v3.3.9 + hooks: + - id: pylint + args: [--rcfile=.pylintrc] diff --git a/pyproject.toml b/pyproject.toml index 73f6dc8..2faf85b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,6 +15,9 @@ reportlab = "4.2.*" [tool.poetry.group.dev.dependencies] black = "24.4.*" isort = "*" +flake8 = "*" +pylint = "*" +pre-commit = "*" detect-secrets = "1.5.0" [build-system]