Skip to content

Commit

Permalink
pre-commit autoupdate (#409)
Browse files Browse the repository at this point in the history
except mypy
  • Loading branch information
skshetry authored Sep 14, 2023
1 parent 27a28ea commit f4789e8
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ default_language_version:
python: python3
repos:
- repo: 'https://github.com/pre-commit/pre-commit-hooks'
rev: v4.0.1
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand All @@ -18,7 +18,7 @@ repos:
- id: sort-simple-yaml
- id: trailing-whitespace
- repo: 'https://github.com/pycqa/flake8'
rev: 4.0.1
rev: 6.1.0
hooks:
- id: flake8
args:
Expand All @@ -29,7 +29,7 @@ repos:
- flake8-debugger
- flake8-string-format
- repo: 'https://github.com/psf/black'
rev: 22.3.0
rev: 23.9.1
hooks:
- id: black
- repo: 'https://github.com/PyCQA/isort'
Expand Down
1 change: 0 additions & 1 deletion gto/tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ def name_tag(


def parse_name(name: str, raise_on_fail: bool = True):

match = re.search(tag_re, name)
if raise_on_fail and not match:
raise InvalidTagName(name)
Expand Down
1 change: 0 additions & 1 deletion gto/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ def make_ready_to_serialize(


def format_echo(result, format, format_table=None, if_empty="", missing_value="-"):

if format == "yaml":
yaml.dump(make_ready_to_serialize(result), sys.stdout)
# or another way
Expand Down
24 changes: 16 additions & 8 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
[flake8]
ignore =
E501, # too long lines, for now.
E203, # Whitespace before ':'
E266, # Too many leading '#' for block comment
W503, # Line break occurred before a binary operator
B008, # Do not perform function calls in argument defaults: conflicts with typer
P1, # unindexed parameters in the str.format, see:
B902, # Invalid first argument 'cls' used for instance method.
C408, # Unnecessary call of 'dict()' literal
# too long lines, for now.
E501,
# Whitespace before ':'
E203,
# Too many leading '#' for block comment
E266,
# Line break occurred before a binary operator
W503,
# Do not perform function calls in argument defaults: conflicts with typer
B008,
# unindexed parameters in the str.format, see:
P1,
# Invalid first argument 'cls' used for instance method.
B902,
# Unnecessary call of 'dict()' literal
C408,
# https://pypi.org/project/flake8-string-format/
max_line_length = 79
max-complexity = 15
Expand Down
1 change: 0 additions & 1 deletion tests/test_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,6 @@ def test_registry_state_tag_tag(tmp_dir: TmpDir):

expected_state = EXPECTED_REGISTRY_TAG_TAG_STATE
for artifact in expected_state["artifacts"]:

for appeared, expected in zip(
iter_over(appeared_state["artifacts"][artifact]["versions"]),
iter_over(expected_state["artifacts"][artifact]["versions"]),
Expand Down

0 comments on commit f4789e8

Please sign in to comment.