Skip to content

Commit

Permalink
Format code to satisfy editorconfig style
Browse files Browse the repository at this point in the history
  • Loading branch information
ppizarror committed Feb 15, 2023
1 parent 16807db commit c765408
Show file tree
Hide file tree
Showing 46 changed files with 1,642 additions and 1,620 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: ppizarror/workflow-actions/.github/workflows/test_python.yml@master
strategy:
matrix:
python: [3.7, 3.8, 3.9, '3.10']
python: [ 3.7, 3.8, 3.9, '3.10' ]
with:
env-vars: |
SDL_AUDIODRIVER=disk
Expand Down
8 changes: 4 additions & 4 deletions docs/add_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@


def make_menu(
menu_theme: 'pygame_menu.themes.Theme',
title: str,
center: bool = True,
widget_font_size: int = 25
menu_theme: 'pygame_menu.themes.Theme',
title: str,
center: bool = True,
widget_font_size: int = 25
) -> 'pygame_menu.Menu':
"""
Make menu.
Expand Down
10 changes: 5 additions & 5 deletions docs/generate_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@


def save_font_image(
font_name: str,
text: str,
filename: str,
font_size: int = 50,
image_height: int = 26
font_name: str,
text: str,
filename: str,
font_size: int = 50,
image_height: int = 26
) -> None:
"""
Generate a font image and save as a png.
Expand Down
3 changes: 1 addition & 2 deletions pygame_menu/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,7 @@
"""
import os

if 'PYGAME_MENU_HIDE_VERSION' not in os.environ and \
'PYGAME_HIDE_SUPPORT_PROMPT' not in os.environ:
if 'PYGAME_MENU_HIDE_VERSION' not in os.environ and 'PYGAME_HIDE_SUPPORT_PROMPT' not in os.environ:
print(f'{__module_name__} {__version__}')

# Cleanup namespace
Expand Down
Loading

0 comments on commit c765408

Please sign in to comment.