Skip to content

Commit

Permalink
init.
Browse files Browse the repository at this point in the history
Signed-off-by: AsmSafone <[email protected]>
  • Loading branch information
AsmSafone committed Dec 23, 2021
0 parents commit 79c6cee
Show file tree
Hide file tree
Showing 34 changed files with 2,464 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @AsmSafone
30 changes: 30 additions & 0 deletions .github/workflows/black.yml
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
28 changes: 28 additions & 0 deletions .github/workflows/pytest.yml
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
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*.env
.vscode
__pycache__
*/__pycache__
*.session*
*.session-journal
unknown_errors.txt
23 changes: 23 additions & 0 deletions CONTRIBUTING.md
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.
14 changes: 14 additions & 0 deletions Dockerfile
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
Loading

0 comments on commit 79c6cee

Please sign in to comment.