forked from AsmSafone/MusicPlayer
-
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.
Showing
34 changed files
with
2,464 additions
and
0 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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 @@ | ||
* @AsmSafone |
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,30 @@ | ||
name: Black | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
black: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- name: Install black | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install black | ||
- name: Run black | ||
run: black . | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
commit-message: refactor | ||
title: refactor | ||
body: Automated code formatting! | ||
branch: autofix | ||
committer: AsmSafone <[email protected]> | ||
signoff: true | ||
delete-branch: true |
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,28 @@ | ||
name: PyTest | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install flake8 pytest | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
- name: Test code with pyTest | ||
run: | | ||
# stop the build if there are Python syntax errors or undefined names | ||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide | ||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics |
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,7 @@ | ||
*.env | ||
.vscode | ||
__pycache__ | ||
*/__pycache__ | ||
*.session* | ||
*.session-journal | ||
unknown_errors.txt |
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,23 @@ | ||
# Translations | ||
|
||
- Fork the repository. | ||
- Open the `lang` directory. | ||
|
||
## Adding a new language | ||
|
||
- Google your language code and create `your_iso_language_code.json`. | ||
- Copy translations of another language (one which you are comfortable translating from). | ||
- Translate all of the strings to that language. | ||
- Commit with a message like "Add [language name] translations". | ||
|
||
## Modifying an existing language | ||
|
||
- Open the translation file you want to modify. | ||
- Make your changes and add your name to "authors". | ||
- Commit with a message like "Modify [language name] translations". | ||
|
||
# Other contributions | ||
|
||
If you're fixing a bug or adding a new feature, please: | ||
- Use verbs in their present forms in your commit messages. | ||
- Avoid using emojis and other non-usual characters in your commit messages. |
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,14 @@ | ||
FROM nikolaik/python-nodejs:python3.9-nodejs16 | ||
|
||
RUN apt update && apt upgrade -y | ||
RUN apt install git curl python3-pip ffmpeg -y | ||
|
||
RUN cd / | ||
RUN git clone https://github.com/AsmSafone/MusicPlayer | ||
RUN cd MusicPlayer | ||
WORKDIR /MusicPlayer | ||
|
||
RUN pip3 install --upgrade pip | ||
RUN pip3 install -U -r requirements.txt | ||
|
||
CMD python3 main.py |
Oops, something went wrong.