Skip to content

Commit

Permalink
edit workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
DSungatulin committed Feb 13, 2024
1 parent ac18f40 commit b402e89
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pyci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
# we want to test our package on several versions of Python
python-version: [3.11, 3.12]
python-version: [3.10, 3.11, 3.12]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand Down
6 changes: 3 additions & 3 deletions gendiff/formatters/stylish.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ def walk(dict_, output, depth, indent):
beginning = f'{(INDENT_CHAR * INDENT_NUMBER) * depth + key}: '
if isinstance(value, dict):
output.append(
beginning + walk(value, [], depth + 1, indent + (INDENT_CHAR * INDENT_NUMBER)) # noqa: E501
beginning + walk(value, [], depth + 1, indent + (INDENT_CHAR * INDENT_NUMBER))
)
else:
output.append(beginning + get_data_format(value))
return (
'{\n' + '\n'.join(output) + f'\n{indent + (INDENT_CHAR*INDENT_NUMBER)[0:-LEFTWARD_SHIFT]}' + '}' # noqa: E501
'{\n' + '\n'.join(output) + f'\n{indent + (INDENT_CHAR*INDENT_NUMBER)[0:-LEFTWARD_SHIFT]}' + '}'
)

if isinstance(value, dict):
Expand Down Expand Up @@ -54,7 +54,7 @@ def walk(diff, output, depth):
if nested:
output.append(indent + special_char + key + ': {')
walk(nested, output, depth + 1)
output.append(indent + (INDENT_CHAR * INDENT_NUMBER)[0:-LEFTWARD_SHIFT] + '}') # noqa: E501
output.append(indent + (INDENT_CHAR * INDENT_NUMBER)[0:-LEFTWARD_SHIFT] + '}')
else:
action = entry['action']
old_value = entry['old value']
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ exclude = .git,__pycache__,.venv,dist,build

ignore =
# line break occurred before a binary operator
W503
W503, E501

per-file-ignores =
# init modules can contain the local imports, logic, unused imports
Expand Down

0 comments on commit b402e89

Please sign in to comment.