diff --git a/.forgejo/workflows/main.yml b/.forgejo/workflows/main.yml index dc97b5b..bf96628 100644 --- a/.forgejo/workflows/main.yml +++ b/.forgejo/workflows/main.yml @@ -6,22 +6,24 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v2 + - uses: https://github.com/actions/setup-python@v5 with: python-version: 3.12 - run: | pip install -r ./requirements.txt pip install -r ./requirements_sast.txt - name: Formatting - run: python -m black . + run: python -m black . --check - name: Linting - run: python -m pylint . + run: python -m pylint **/*.py test: name: Tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v2 + with: + github-server-url: https://forge.karnov.club + - uses: https://github.com/actions/setup-python@v5 with: python-version: 3.12 - run: | diff --git a/pyproject.toml b/pyproject.toml index 7588f27..89da2b4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,3 +25,7 @@ spud = "spud.cli:cli" [tool.setuptools] packages = ["spud"] +[tool.pylint.main] +ignore = ["spud.venv"] +ignore-paths = ["spud.venv"] +jobs = 0