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

Bump test dependencies #2145

Merged
merged 2 commits into from
May 16, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ repos:
args: [--relative, --no-progress, --no-summary]
name: Spell check with cspell
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.14.3
rev: 0.15.0
hooks:
- id: check-github-workflows
- repo: https://github.com/pre-commit/pre-commit-hooks.git
Expand Down Expand Up @@ -145,7 +145,7 @@ repos:
plugins/.*
)$
- repo: https://github.com/pycqa/pylint
rev: v2.13.8
rev: v2.14.0-b1
hooks:
- id: pylint
additional_dependencies:
Expand Down
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#
alabaster==0.7.12
ansible-compat==2.0.3
ansible-core==2.12.5
ansible-core==2.13.0
ansible-pygments==0.1.1
astroid==2.11.5
attrs==21.4.0
Expand All @@ -18,7 +18,7 @@ cffi==1.15.0
charset-normalizer==2.0.12
click==8.1.3
commonmark==0.9.1
coverage==6.3.2
coverage==6.3.3
cryptography==37.0.2
dill==0.3.4
docutils==0.16
Expand Down Expand Up @@ -55,8 +55,8 @@ pycodestyle==2.8.0
pycparser==2.21
pyflakes==2.4.0
pygments==2.12.0
pylint==2.13.8
pyparsing==3.0.8
pylint==2.13.9
pyparsing==3.0.9
pyrsistent==0.18.1
pytest==7.1.2
pytest-cov==3.0.0
Expand Down
2 changes: 0 additions & 2 deletions src/ansiblelint/_internal/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@


# Derived rules are likely to want to access class members, so:
# pylint: disable=no-self-use
# pylint: disable=unused-argument
class BaseRule:
"""Root class used by Rules."""
Expand Down Expand Up @@ -96,7 +95,6 @@ def __lt__(self, other: "BaseRule") -> bool:
return self.id < other.id


# pylint: enable=no-self-use
# pylint: enable=unused-argument


Expand Down
2 changes: 1 addition & 1 deletion src/ansiblelint/file_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def __getitem__(self, key: Any) -> Any:
def get(self, key: Any, default: Any = None) -> Any:
"""Provide compatibility subscriptable support."""
try:
return self.__getitem__(key)
return self[key]
ssbarnea marked this conversation as resolved.
Show resolved Hide resolved
except NotImplementedError:
return default

Expand Down
1 change: 0 additions & 1 deletion src/ansiblelint/formatters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ def _format_path(self, path: Union[str, Path]) -> Union[str, Path]:
# Use os.path.relpath 'cause Path.relative_to() misbehaves
return os.path.relpath(path, start=self._base_dir)

# pylint: disable=no-self-use
def format(self, match: "MatchError") -> str:
"""Format a match error."""
return str(match)
Expand Down
2 changes: 1 addition & 1 deletion src/ansiblelint/rules/meta_video_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def matchplay(
if not isinstance(video, dict):
results.append(
self.create_matcherror(
"Expected item in 'video_links' to be " "a dictionary",
"Expected item in 'video_links' to be a dictionary",
filename=file,
)
)
Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ setenv =
PIP_CONSTRAINT = /dev/null
commands =
# manual hook calls the optional pip-compile-upgrade hook
{envpython} -m pre_commit run --all-files --show-diff-on-failure --hook-stage manual pip-compile-upgrade
pre-commit run --all-files --show-diff-on-failure --hook-stage manual pip-compile-upgrade
# Update pre-commit hooks
pre-commit autoupdate
# We fail if files are modified at the end
git diff --exit-code

Expand Down