From cfa700bb99f5016bf7bc24ad894916701bd1aceb Mon Sep 17 00:00:00 2001 From: George Shuklin Date: Tue, 16 Jan 2024 16:26:51 +0200 Subject: [PATCH] ci: pin down flake8, because 7.0.0 it conflicts with old ansible --- .github/workflows/tests.yaml | 6 +++--- .../sc_api/plugins/modules/sc_l2_segment_aliases.py | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 6d45705..42e568c 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -35,8 +35,8 @@ jobs: python-version: ${{ matrix.python_version }} - name: Install dependencies run: | + pip install flake8==6.1.0 pytest python -m pip install --upgrade pip - pip install flake8 pytest pip install -r requirements.txt - name: Sanity tests with dependencies run: ansible-test sanity --requirements --python ${{ matrix.python_version }} @@ -62,7 +62,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install flake8 pytest + pip install flake8==6.1.0 pytest pip install -r requirements.txt - name: Configure integration tests run: | @@ -105,7 +105,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install flake8 pytest + pip install flake8==6.1.0 pytest pip install -r requirements.txt - name: Configure integration tests run: | diff --git a/ansible_collections/serverscom/sc_api/plugins/modules/sc_l2_segment_aliases.py b/ansible_collections/serverscom/sc_api/plugins/modules/sc_l2_segment_aliases.py index 5de6343..fa7c76b 100644 --- a/ansible_collections/serverscom/sc_api/plugins/modules/sc_l2_segment_aliases.py +++ b/ansible_collections/serverscom/sc_api/plugins/modules/sc_l2_segment_aliases.py @@ -7,6 +7,7 @@ from __future__ import absolute_import, division, print_function + __metaclass__ = type