forked from TeamYukki/YukkiMusicBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some Code Format Fixes (TeamYukki#82)
* Add Workflows * PyLint:Auto Fixes Co-authored-by: NotReallyShikhar <[email protected]>
- Loading branch information
1 parent
4c2fcc1
commit 03845a6
Showing
66 changed files
with
727 additions
and
963 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: PyLint | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
PEP8: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install Python lint libraries | ||
run: | | ||
pip install autopep8 autoflake isort black | ||
- name: Check for showstoppers | ||
run: | | ||
autopep8 --verbose --in-place --recursive --aggressive --aggressive --ignore=W605. *.py | ||
- name: Remove unused imports and variables | ||
run: | | ||
autoflake --in-place --recursive --remove-all-unused-imports --remove-unused-variables --ignore-init-module-imports . | ||
- name: lint with isort and black | ||
run: | | ||
isort . | ||
black . | ||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: 'PyLint:Auto Fixes' | ||
commit_options: '--no-verify' | ||
repository: . | ||
commit_user_name: NotReallyShikhar | ||
commit_user_email: [email protected] | ||
commit_author: NotReallyShikhar <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,44 @@ | ||
from .assistant import (_get_assistant, get_as_names, get_assistant, | ||
save_assistant) | ||
from .auth import (_get_authusers, add_nonadmin_chat, delete_authuser, | ||
get_authuser, get_authuser_count, get_authuser_names, | ||
is_nonadmin_chat, remove_nonadmin_chat, save_authuser) | ||
from .assistant import _get_assistant, get_as_names, get_assistant, save_assistant | ||
from .auth import ( | ||
_get_authusers, | ||
add_nonadmin_chat, | ||
delete_authuser, | ||
get_authuser, | ||
get_authuser_count, | ||
get_authuser_names, | ||
is_nonadmin_chat, | ||
remove_nonadmin_chat, | ||
save_authuser, | ||
) | ||
from .blacklistchat import blacklist_chat, blacklisted_chats, whitelist_chat | ||
from .chats import (add_served_chat, get_served_chats, is_served_chat, | ||
remove_served_chat) | ||
from .gban import (add_gban_user, get_gbans_count, is_gbanned_user, | ||
remove_gban_user) | ||
from .chats import add_served_chat, get_served_chats, is_served_chat, remove_served_chat | ||
from .gban import add_gban_user, get_gbans_count, is_gbanned_user, remove_gban_user | ||
from .onoff import add_off, add_on, is_on_off | ||
from .playlist import (_get_playlists, delete_playlist, get_playlist, | ||
get_playlist_names, save_playlist) | ||
from .pmpermit import (approve_pmpermit, disapprove_pmpermit, | ||
is_pmpermit_approved) | ||
from .queue import (add_active_chat, get_active_chats, is_active_chat, | ||
is_music_playing, music_off, music_on, remove_active_chat) | ||
from .playlist import ( | ||
_get_playlists, | ||
delete_playlist, | ||
get_playlist, | ||
get_playlist_names, | ||
save_playlist, | ||
) | ||
from .pmpermit import approve_pmpermit, disapprove_pmpermit, is_pmpermit_approved | ||
from .queue import ( | ||
add_active_chat, | ||
get_active_chats, | ||
is_active_chat, | ||
is_music_playing, | ||
music_off, | ||
music_on, | ||
remove_active_chat, | ||
) | ||
from .start import _get_start, get_start, get_start_names, save_start | ||
from .sudo import add_sudo, get_sudoers, remove_sudo | ||
from .theme import _get_theme, get_theme, save_theme | ||
from .videocalls import (add_active_video_chat, get_active_video_chats, | ||
get_video_limit, is_active_video_chat, | ||
remove_active_video_chat, set_video_limit) | ||
from .videocalls import ( | ||
add_active_video_chat, | ||
get_active_video_chats, | ||
get_video_limit, | ||
is_active_video_chat, | ||
remove_active_video_chat, | ||
set_video_limit, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from typing import Dict, List, Union | ||
|
||
from Yukki import db | ||
|
||
chatsdb = db.chats | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from typing import Dict, List, Union | ||
|
||
from Yukki import db | ||
|
||
gbansdb = db.gban | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from typing import Dict, List, Union | ||
|
||
from Yukki import db | ||
|
||
onoffdb = db.onoffper | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from typing import Dict, List, Union | ||
|
||
from Yukki import db | ||
|
||
pmpermitdb = db.permit | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from typing import Dict, List, Union | ||
|
||
from Yukki import db | ||
|
||
pytgdb = db.pytg | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from typing import Dict, List, Union | ||
|
||
from Yukki import db | ||
|
||
sudoersdb = db.sudoers | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from typing import Dict, List, Union | ||
from typing import Dict, Union | ||
|
||
from Yukki import db | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
from typing import Dict, List, Union | ||
|
||
from Yukki import db | ||
|
||
videodb = db.yukkivideocalls | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.