Skip to content

Commit

Permalink
Merge branch 'nikhilbadyal:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
soymadip committed Jun 26, 2023
2 parents 76d6108 + 282b75e commit 10564ea
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

steps:
- name: Check out Git repository
uses: actions/[email protected].2
uses: actions/[email protected].3

- name: Update Env for custom build
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/[email protected].2
uses: actions/[email protected].3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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
18 changes: 6 additions & 12 deletions src/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down
3 changes: 2 additions & 1 deletion src/patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 10564ea

Please sign in to comment.