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