diff --git a/.github/workflows/build-artifact.yml b/.github/workflows/build-artifact.yml index 69451426ce0..e68b545a980 100644 --- a/.github/workflows/build-artifact.yml +++ b/.github/workflows/build-artifact.yml @@ -36,7 +36,7 @@ jobs: steps: - name: Check out Git repository - uses: actions/checkout@v3.5.2 + uses: actions/checkout@v3.5.3 - name: Update Env for custom build run: | diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 7746f2bf011..def52b2af11 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -20,7 +20,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3.5.2 + uses: actions/checkout@v3.5.3 - name: Initialize CodeQL uses: github/codeql-action/init@v2 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5bd97fe82f3..fe61b13b38a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -36,13 +36,13 @@ repos: args: [ "--profile", "black", ] - repo: https://github.com/hadialqattan/pycln - rev: v2.1.3 + rev: v2.1.5 hooks: - id: pycln args: [ --config=setup.cfg ] - repo: https://github.com/PyCQA/docformatter - rev: v1.6.5 + rev: v1.7.2 hooks: - id: docformatter args: [ --in-place ] diff --git a/requirements.txt b/requirements.txt index 12f13527932..2ab5f3a3bff 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ environs==9.5.0 loguru==0.7.0 -pre-commit==3.3.1 -requests==2.30.0 -selectolax==0.3.12 +pre-commit==3.3.3 +requests==2.31.0 +selectolax==0.3.14 tqdm==4.65.0 diff --git a/src/parser.py b/src/parser.py index 72332650920..cfbea885d03 100644 --- a/src/parser.py +++ b/src/parser.py @@ -36,24 +36,18 @@ def exclude(self, name: str) -> None: self._EXCLUDED.append(name) def get_excluded_patches(self) -> List[str]: - """ - Getter to get all excluded patches - :return: List of excluded patches - """ + """Getter to get all excluded patches :return: List of excluded + patches.""" return self._EXCLUDED def get_all_patches(self) -> List[str]: - """ - Getter to get all excluded patches - :return: List of excluded patches - """ + """Getter to get all excluded patches :return: List of excluded + patches.""" return self._PATCHES def invert_patch(self, name: str) -> bool: - """ - Getter to get all excluded patches - :return: List of excluded patches - """ + """Getter to get all excluded patches :return: List of excluded + patches.""" try: patch_index = self._PATCHES.index(name) if self._PATCHES[patch_index - 1] == "-e": diff --git a/src/patches.py b/src/patches.py index aa2179d9698..681436b0836 100644 --- a/src/patches.py +++ b/src/patches.py @@ -190,7 +190,8 @@ def get_app_configs(self, app: str) -> Tuple[List[Dict[str, str]], str, bool]: """Get Configurations for a given app. :param app: Name of the application - :return: All Patches , Its version and whether it is experimental + :return: All Patches , Its version and whether it is + experimental """ experiment = False total_patches, recommended_version = self.get(app=app)