Skip to content

Commit

Permalink
Merge pull request #1942 from input-output-hk/update_linting
Browse files Browse the repository at this point in the history
Update linting tools
  • Loading branch information
mkoura authored Sep 11, 2023
2 parents af0934c + 8402a59 commit f8daf97
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ repos:
entry: env SETUPTOOLS_USE_DISTUTILS=stdlib reorder-python-imports
language_version: python3
- repo: https://github.com/ambv/black
rev: 23.7.0
rev: 23.9.1
hooks:
- id: black
args: [--safe, --quiet]
Expand All @@ -27,19 +27,19 @@ repos:
- id: debug-statements
language_version: python3
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.285
rev: v0.0.287
hooks:
- id: ruff
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.5
hooks:
- id: shellcheck
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.35.0
rev: v0.36.0
hooks:
- id: markdownlint
- repo: https://github.com/rstcheck/rstcheck
rev: v6.1.2
rev: v6.2.0
hooks:
- id: rstcheck
additional_dependencies: [sphinx, toml]
Expand Down
6 changes: 1 addition & 5 deletions cardano_node_tests/cluster_management/cluster_getter.py
Original file line number Diff line number Diff line change
Expand Up @@ -837,11 +837,7 @@ def get_cluster_instance( # noqa: C901
# try all existing cluster instances; randomize the order
for instance_num in random.sample(available_instances, k=self.num_of_instances):
# if instance to run the test on was already decided, skip all other instances
# pylint: disable=consider-using-in
if (
cget_status.selected_instance != -1
and instance_num != cget_status.selected_instance
):
if cget_status.selected_instance not in (-1, instance_num):
continue

cget_status.instance_num = instance_num
Expand Down

0 comments on commit f8daf97

Please sign in to comment.