Ultroid v0.7 Updates
Date: 30-8-2022 Co-Authored-By: Aditya <me@xditya.me> Co-Authored-By: Amit Sharma <48654350+buddhhu@users.noreply.github.com> Co-Authored-By: CyrusXD <79554993+Ashutosh1478@users.noreply.github.com> Co-Authored-By: Danish <danish@ultroid.tech> Co-Authored-By: TechiError <error@notavailable.live> Co-Authored-By: Arnab Paryali <arnabxd@pm.me>
This commit is contained in:
33
.github/workflows/autotranslate.yml
vendored
Normal file
33
.github/workflows/autotranslate.yml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
name: Strings Translation
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [ dev ]
|
||||
paths:
|
||||
- strings/strings/en.yml
|
||||
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
name: Checkout Strings
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.9.x
|
||||
- name: Update Translations
|
||||
run: |
|
||||
git config --global user.email "newdev0@outlook.com"
|
||||
git config --global user.name "New-Dev0"
|
||||
git branch translation && git checkout translation
|
||||
pip install pyyaml requests telethon
|
||||
wget -O run.py https://gist.githubusercontent.com/New-dev0/c7d0d1eb514d311e8e3b687ae5cbe5f3/raw/350cc6d451a02a4b07d0f9bbc27b0e7c9465d3d4/updater.py
|
||||
python3 run.py
|
||||
rm run.py
|
||||
git add . && git commit -m "[Auto] Translate" && git push --set-upstream origin translation
|
||||
gh pr create --title "[Auto] Translation" -B dev --body "Update Translation"
|
||||
44
.github/workflows/pylint.yaml
vendored
Normal file
44
.github/workflows/pylint.yaml
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
name: PyLint
|
||||
on:
|
||||
push:
|
||||
branches: [ dev ]
|
||||
paths:
|
||||
- "**.py"
|
||||
jobs:
|
||||
PEP8:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: 3.8
|
||||
- name: Install Python lint libraries
|
||||
run: pip install autopep8 autoflake isort black
|
||||
- name: Check for showstoppers
|
||||
run: |
|
||||
autopep8 --verbose --in-place --recursive --aggressive --aggressive assistant/*.py
|
||||
autopep8 --verbose --in-place --recursive --aggressive --aggressive assistant/manager/*.py
|
||||
autopep8 --verbose --in-place --recursive --aggressive --aggressive plugins/*.py
|
||||
- name: Remove unused imports and variables
|
||||
run: |
|
||||
autoflake --in-place --recursive --remove-all-unused-imports --remove-unused-variables --ignore-init-module-imports assistant/*.py
|
||||
autoflake --in-place --recursive --remove-all-unused-imports --remove-unused-variables --ignore-init-module-imports assistant/manager/*.py
|
||||
autoflake --in-place --recursive --remove-all-unused-imports --remove-unused-variables --ignore-init-module-imports plugins/*.py
|
||||
- name: lint with isort and black
|
||||
run: |
|
||||
isort assistant/*.py
|
||||
isort assistant/manager/*.py
|
||||
black --fast assistant/*.py
|
||||
black assistant/manager/*.py
|
||||
isort plugins/*.py
|
||||
black --fast plugins/*.py
|
||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: 'pylint: auto fixes'
|
||||
commit_options: '--no-verify'
|
||||
repository: .
|
||||
commit_user_name: buddhhu
|
||||
commit_user_email: 48654350+buddhhu@users.noreply.github.com
|
||||
commit_author: Amit Sharma <48654350+buddhhu@users.noreply.github.com>
|
||||
|
||||
33
.github/workflows/stringanalysis.yml
vendored
Normal file
33
.github/workflows/stringanalysis.yml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
name: Strings Analysis
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches: dev
|
||||
paths: strings/strings/*
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
name: Checkout Strings
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: 3.9.x
|
||||
- name: Install Stuff
|
||||
run: pip install pyyaml
|
||||
- name: dl stuff
|
||||
run: wget -O stringizer.py https://gist.githubusercontent.com/New-dev0/6dfc8a177418565a776167764b2fe0e4/raw/f515e9892a331110c1565eb109eb712eb64423bd/stringzer.py
|
||||
- name: do stuff
|
||||
run: python stringizer.py && rm stringizer.py
|
||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: 'Strings: Auto Count'
|
||||
commit_options: '--no-verify'
|
||||
repository: .
|
||||
commit_user_name: TeamUltroid
|
||||
commit_user_email: 48654350+buddhhu@users.noreply.github.com
|
||||
commit_author: Amit Sharma <48654350+buddhhu@users.noreply.github.com>
|
||||
Reference in New Issue
Block a user