diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 99fd7fd..50a7257 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -105,7 +105,7 @@ jobs: - name: Install sdk working-directory: ./sdk-repo-updated run: | - pip install poetry==1.8.5 + pip install poetry poetry config virtualenvs.create false python -m venv .venv . .venv/bin/activate diff --git a/.github/workflows/sdk-pr.yaml b/.github/workflows/sdk-pr.yaml index 858c513..7ce266a 100644 --- a/.github/workflows/sdk-pr.yaml +++ b/.github/workflows/sdk-pr.yaml @@ -74,7 +74,7 @@ jobs: python -m venv .venv . .venv/bin/activate python -m pip install --upgrade pip - pip install poetry==1.8.5 + pip install poetry poetry config virtualenvs.create false (cd ./sdk-repo-updated && make install-dev) scripts/sdk-create-pr.sh "generator-bot-${{ github.run_id }}" "Generated from GitHub run [${{ github.run_id }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})" "git@github.com:stackitcloud/stackit-sdk-python.git" "python" diff --git a/templates/python/pyproject.mustache b/templates/python/pyproject.mustache index 589a361..80c6621 100644 --- a/templates/python/pyproject.mustache +++ b/templates/python/pyproject.mustache @@ -95,14 +95,5 @@ inline-quotes = '"' docstring-quotes = '"""' multiline-quotes = '"""' ban-relative-imports = true -per-file-ignores = """ - # asserts are fine in tests, tests shouldn't be build optimized - ./tests/*: S101, - # F841: some variables get generated but may not be used, depending on the api-spec - # E501: long descriptions/string values might lead to lines that are too long - ./src/stackit/*/models/*: F841,E501 - # F841: some variables get generated but may not be used, depending on the api-spec - # E501: long descriptions/string values might lead to lines that are too long - # B028: stacklevel for deprecation warning is irrelevant - ./src/stackit/*/api/default_api.py: F841,B028,E501 -""" \ No newline at end of file +# Exclude generated code +extend-exclude = [ "src/stackit/*/models/*", "src/stackit/*/api/*", "src/stackit/*/*.py" ] \ No newline at end of file