mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 11:58:37 +09:00
Merge pull request #169 from nikhilbadyal/pre-commit-ci-update-config [skip ci]
[pre-commit.ci] pre-commit autoupdate
This commit is contained in:
@@ -42,7 +42,7 @@ repos:
|
|||||||
args: [ --config=setup.cfg ]
|
args: [ --config=setup.cfg ]
|
||||||
|
|
||||||
- repo: https://github.com/PyCQA/docformatter
|
- repo: https://github.com/PyCQA/docformatter
|
||||||
rev: v1.6.5
|
rev: v1.7.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: docformatter
|
- id: docformatter
|
||||||
args: [ --in-place ]
|
args: [ --in-place ]
|
||||||
|
|||||||
+6
-12
@@ -36,24 +36,18 @@ class Parser(object):
|
|||||||
self._EXCLUDED.append(name)
|
self._EXCLUDED.append(name)
|
||||||
|
|
||||||
def get_excluded_patches(self) -> List[str]:
|
def get_excluded_patches(self) -> List[str]:
|
||||||
"""
|
"""Getter to get all excluded patches :return: List of excluded
|
||||||
Getter to get all excluded patches
|
patches."""
|
||||||
:return: List of excluded patches
|
|
||||||
"""
|
|
||||||
return self._EXCLUDED
|
return self._EXCLUDED
|
||||||
|
|
||||||
def get_all_patches(self) -> List[str]:
|
def get_all_patches(self) -> List[str]:
|
||||||
"""
|
"""Getter to get all excluded patches :return: List of excluded
|
||||||
Getter to get all excluded patches
|
patches."""
|
||||||
:return: List of excluded patches
|
|
||||||
"""
|
|
||||||
return self._PATCHES
|
return self._PATCHES
|
||||||
|
|
||||||
def invert_patch(self, name: str) -> bool:
|
def invert_patch(self, name: str) -> bool:
|
||||||
"""
|
"""Getter to get all excluded patches :return: List of excluded
|
||||||
Getter to get all excluded patches
|
patches."""
|
||||||
:return: List of excluded patches
|
|
||||||
"""
|
|
||||||
try:
|
try:
|
||||||
patch_index = self._PATCHES.index(name)
|
patch_index = self._PATCHES.index(name)
|
||||||
if self._PATCHES[patch_index - 1] == "-e":
|
if self._PATCHES[patch_index - 1] == "-e":
|
||||||
|
|||||||
Reference in New Issue
Block a user