8000 Code cleanup. · tj-python/github-deploy@7f38081 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7f38081

Browse files
committed
Code cleanup.
1 parent e76877a commit 7f38081

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed
File renamed without changes.
File renamed without changes.

commands/delete.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import asyncclick as click
66
import certifi
77

8-
from constants import BASE_URL, REPOS_URL
9-
from utils import get_repo
8+
from commands._constants import BASE_URL, REPOS_URL
9+
from commands._utils import get_repo
1010

1111

1212
async def get(*, session, url, headers=None, skip_missing=False):

commands/update.py renamed to commands/upload.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
import asyncclick as click
88
import certifi
99

10-
from constants import BASE_URL, REPOS_URL
11-
from utils import get_repo
10+
from commands._constants import BASE_URL, REPOS_URL
11+
from commands._utils import get_repo
1212

1313

1414
async def get(*, session, url, headers=None, skip_missing=False):

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class GithubDeploy(click.MultiCommand):
99
def list_commands(self, ctx):
1010
rv = []
1111
for filename in os.listdir(plugin_folder):
12-
if filename.endswith('.py') and not filename.startswith('__init__'):
12+
if filename.endswith('.py') and not filename.startswith('__init__') and not filename.startswith('_'):
1313
rv.append(filename[:-3])
1414
rv.sort()
1515
return rv

0 commit comments

Comments
 (0)
0