Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ESLint and PrettierJS #2726

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update build.py
  • Loading branch information
ImprovedTube authored Dec 15, 2024
commit 888b67c5709112ec8f5853783c1c8ce2d245d926
37 changes: 7 additions & 30 deletions build/build.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-

excluded = {
'.git', '.github', 'README.md', 'SECURITY.md', 'LICENSE', 'CONTRIBUTING.md', 'wiki'
'cached', 'node_modules', 'config', 'tests', 'build', 'previews', 'py'
}

#---------------------------------------------------------------
# >>> TABLE OF CONTENTS:
#---------------------------------------------------------------
Expand All @@ -22,7 +27,6 @@
import re
import zipfile


#---------------------------------------------------------------
# 2.0 CHROMIUM
#---------------------------------------------------------------
Expand All @@ -37,18 +41,7 @@ def chromium(browser):
os.chdir(temporary_path)

for item in os.listdir('../'):
if (
item != '.git' and
item != '.github' and
item != 'cached' and
item != 'node_modules' and
item != 'build' and
item != 'config' and
item != 'tests' and
item != 'LICENSE' and
item != 'CONTRIBUTING.md' and
item.find('.zip') == -1
):
if item not in excluded_items and item.find('.zip') == -1:
s = os.path.join('../', item)
d = os.path.join(temporary_path, item)
if os.path.isdir(s):
Expand Down Expand Up @@ -95,23 +88,7 @@ def firefox():

for item in os.listdir('../'):

if (
item != '.git' and
item != '.github' and
item != 'cached' and
item != 'node_modules' and
item != 'build' and
item != 'config' and
item != 'tests' and
item != 'LICENSE' and
item != 'CONTRIBUTING.md' and
item != 'README.md' and
item != 'SECURITY.md' and
item != 'previews' and
item != 'py' and
item != 'wiki' and
item.find('.zip') == -1
):
if item not in excluded_items and item.find('.zip') == -1:
s = os.path.join('../', item)
d = os.path.join(temporary_path, item)
if os.path.isdir(s):
Expand Down
Loading