Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update pre-commit hook pycqa/pylint to v3.3.1 #347

Merged
merged 2 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ repos:
- id: black
args: [--line-length=120]
- repo: https://github.com/PyCQA/pylint
rev: v3.0.3
rev: v3.3.1
hooks:
- id: pylint
args: ["--rcfile=.pylintrc"]
Expand Down
6 changes: 3 additions & 3 deletions anaconda_linter/lint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ class Linter:
Lint executor class
"""

def __init__(
def __init__( # pylint: disable=too-many-positional-arguments
self,
config: dict,
verbose: bool = False,
Expand Down Expand Up @@ -692,7 +692,7 @@ def get_report(cls, messages: list[LintMessage], verbose: bool = False) -> str:

return report

def lint(
def lint( # pylint: disable=too-many-positional-arguments
self,
recipes: list[Union[str, _recipe.Recipe]],
arch_name: str = "linux-64",
Expand Down Expand Up @@ -760,7 +760,7 @@ def lint(

return result

def lint_file(
def lint_file( # pylint: disable=too-many-positional-arguments
self,
recipe_name: str,
arch_name: str = "linux-64",
Expand Down
4 changes: 2 additions & 2 deletions anaconda_linter/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def check_path(value) -> str:
return parser


def execute_linter(
def execute_linter( # pylint: disable=too-many-positional-arguments
recipe: str,
config: Optional[utils.RecipeConfigType] = None,
variant_config_files: Optional[list[str]] = None,
Expand Down Expand Up @@ -179,7 +179,7 @@ def execute_linter(
# TODO evaluate this: Not all of our rules require checking against variants now that we have the parser in percy.
for subdir in subdirs:
result = linter.lint(recipes, subdir, variant_config_files, exclusive_config_files, fix_flag)
if result > overall_result:
if result > overall_result: # pylint: disable=consider-using-max-builtin
overall_result = result
messages = messages | set(linter.get_messages())

Expand Down
Loading