Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
code-rgb committed Aug 18, 2021
0 parents commit 096bac7
Show file tree
Hide file tree
Showing 25 changed files with 2,307 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Auto detect text files and perform LF normalization
* text=auto
*.sh eol=lf
36 changes: 36 additions & 0 deletions .github/workflows/formatter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Code Formatter

on: push

jobs:
LINT:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Installing requirements
run: |
pip install autopep8 autoflake isort black
- name: Check for showstoppers
run: >
autopep8 --verbose --in-place --recursive --aggressive --aggressive
--ignore=W605 .
- name: Remove unused imports and variables
run: >
autoflake --in-place --recursive --remove-all-unused-imports
--remove-unused-variables --ignore-init-module-imports .
- name: linting with isort and black
run: |
isort .
black .
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "auto: code formatting"
commit_options: "--no-verify"
repository: .
commit_user_name: code-rgb
commit_user_email: [email protected]
commit_author: code-rgb <[email protected]>
35 changes: 35 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release

on: workflow_dispatch

jobs:
run_and_release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install Poetry
run: curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
- name: Add Poetry to path
run: echo "${HOME}/.poetry/bin" >> $GITHUB_PATH
- name: Install Requirements
run: poetry install
- name: Run Script
run: chmod +x start.sh && ./start.sh
- name: Check errors
run: |
if [[ -f "error.png" ]]; then
curl --upload-file "error.png" "https://transfer.sh/error.png"
fi
- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: "v0.1.3"
name: Release
draft: false
files: ./release/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
122 changes: 122 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# Custom
*.txt
*.apk
*.zip
*.tar.gz
release/
pakages/
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"python.formatting.provider": "black"
}
Loading

0 comments on commit 096bac7

Please sign in to comment.