diff --git a/.github/workflows/pre-commit-format.yml b/.github/workflows/pre-commit-format.yml index 8491d23..2fff1fe 100644 --- a/.github/workflows/pre-commit-format.yml +++ b/.github/workflows/pre-commit-format.yml @@ -7,11 +7,23 @@ jobs: contents: write steps: - uses: actions/checkout@main + + - name: Install python + uses: actions/setup-python@main + with: + cache: pip + python-version: "3.12" + + - name: Install python requirements + run: pip install -r requirements.txt + - uses: pre-commit/action@main with: extra_args: --all-files + - name: Update pre-commit hook run: pre-commit autoupdate + - uses: stefanzweifel/git-auto-commit-action@master with: commit_message: "🐛 [pre-commit action]: Auto format" diff --git a/.pylintrc b/.pylintrc index 592f6c0..11b9110 100644 --- a/.pylintrc +++ b/.pylintrc @@ -11,3 +11,7 @@ disable= protected-access, too-few-public-methods, disallowed-name + +[MASTER] + +init-hook='import sys; sys.path.append(".venv/Lib/site-packages/")' \ No newline at end of file