From d031f1570308f36f0c837ba20db03c019ebd8d4b Mon Sep 17 00:00:00 2001 From: Allan Nava Date: Wed, 26 Jun 2024 13:27:34 +0200 Subject: [PATCH 1/2] cleancode --- src/compress/compress.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compress/compress.py b/src/compress/compress.py index 4d8fb62..a9467d6 100644 --- a/src/compress/compress.py +++ b/src/compress/compress.py @@ -196,7 +196,7 @@ def get_restreamers(self, start_from :int, amount :int): # * @param {number} amount # * @returns restreamer list # */ - def get_restreamers_ott_all(self, start_from :int, amount :int): + def get_restreamers_ott_all(self, start_from : int, amount : int ): return self.req.post(TNGRM_BASE_URL + GET_RESTREAMERS_OTT_ALL, headers={ "Content-Type": "application/json", From c5b053cb4fd4e5104c1127348aa8adea0a39fdfe Mon Sep 17 00:00:00 2001 From: Allan Nava Date: Wed, 26 Jun 2024 13:27:51 +0200 Subject: [PATCH 2/2] remove lint --- .github/workflows/lint.yml | 102 ------------------------------------- 1 file changed, 102 deletions(-) delete mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index 28bbca3..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,102 +0,0 @@ -name: Lint - -on: - push: - branches: [master, main] - pull_request: - branches: [master, main] - -jobs: - check-commits: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: webiny/action-conventional-commits@v1.0.3 - - check-linting: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Set up Python 3.10 - uses: actions/setup-python@v3 - with: - python-version: "3.10" - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install poetry - poetry install - - name: Check linting, formatting - run: | - poetry run tox -e check - - check-docs: - runs-on: ubuntu-latest - needs: - - check-commits - - check-linting - steps: - - uses: actions/checkout@v3 - - name: Set up Python 3.10 - uses: actions/setup-python@v3 - with: - python-version: "3.10" - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install poetry - poetry install - - name: Check documentation build - run: | - poetry run tox -e docs - - test: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] - keycloak-version: ["20.0", "21.0", "latest"] - needs: - - check-commits - - check-linting - env: - KEYCLOAK_DOCKER_IMAGE_TAG: ${{ matrix.keycloak-version }} - steps: - - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 - with: - python-version: ${{ matrix.python-version }} - - uses: docker-practice/actions-setup-docker@master - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install poetry - poetry install - - name: Run tests - run: | - poetry run tox -e tests - - name: Keycloak logs - run: | - cat keycloak_test_logs.txt - - build: - runs-on: ubuntu-latest - needs: - - test - - check-docs - steps: - - uses: actions/checkout@v3 - - name: Set up Python 3.10 - uses: actions/setup-python@v3 - with: - python-version: "3.10" - - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install poetry - poetry install - - name: Run build - run: | - poetry run tox -e build \ No newline at end of file