Skip to content

Commit 096bac7

Browse files
committed
Initial commit
0 parents  commit 096bac7

25 files changed

+2307
-0
lines changed

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
*.sh eol=lf

.github/workflows/formatter.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Code Formatter
2+
3+
on: push
4+
5+
jobs:
6+
LINT:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Setup Python
11+
uses: actions/setup-python@v1
12+
with:
13+
python-version: 3.9
14+
- name: Installing requirements
15+
run: |
16+
pip install autopep8 autoflake isort black
17+
- name: Check for showstoppers
18+
run: >
19+
autopep8 --verbose --in-place --recursive --aggressive --aggressive
20+
--ignore=W605 .
21+
- name: Remove unused imports and variables
22+
run: >
23+
autoflake --in-place --recursive --remove-all-unused-imports
24+
--remove-unused-variables --ignore-init-module-imports .
25+
- name: linting with isort and black
26+
run: |
27+
isort .
28+
black .
29+
- uses: stefanzweifel/git-auto-commit-action@v4
30+
with:
31+
commit_message: "auto: code formatting"
32+
commit_options: "--no-verify"
33+
repository: .
34+
commit_user_name: code-rgb
35+
commit_user_email: [email protected]
36+
commit_author: code-rgb <[email protected]>

.github/workflows/release.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
run_and_release:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Setup Python
11+
uses: actions/setup-python@v1
12+
with:
13+
python-version: 3.9
14+
- name: Install Poetry
15+
run: curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
16+
- name: Add Poetry to path
17+
run: echo "${HOME}/.poetry/bin" >> $GITHUB_PATH
18+
- name: Install Requirements
19+
run: poetry install
20+
- name: Run Script
21+
run: chmod +x start.sh && ./start.sh
22+
- name: Check errors
23+
run: |
24+
if [[ -f "error.png" ]]; then
25+
curl --upload-file "error.png" "https://transfer.sh/error.png"
26+
fi
27+
- name: Release
28+
uses: softprops/action-gh-release@v1
29+
with:
30+
tag_name: "v0.1.3"
31+
name: Release
32+
draft: false
33+
files: ./release/*
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
MANIFEST
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.nox/
42+
.coverage
43+
.coverage.*
44+
.cache
45+
nosetests.xml
46+
coverage.xml
47+
*.cover
48+
.hypothesis/
49+
.pytest_cache/
50+
51+
# Translations
52+
*.mo
53+
*.pot
54+
55+
# Django stuff:
56+
*.log
57+
local_settings.py
58+
db.sqlite3
59+
60+
# Flask stuff:
61+
instance/
62+
.webassets-cache
63+
64+
# Scrapy stuff:
65+
.scrapy
66+
67+
# Sphinx documentation
68+
docs/_build/
69+
70+
# PyBuilder
71+
target/
72+
73+
# Jupyter Notebook
74+
.ipynb_checkpoints
75+
76+
# IPython
77+
profile_default/
78+
ipython_config.py
79+
80+
# pyenv
81+
.python-version
82+
83+
# celery beat schedule file
84+
celerybeat-schedule
85+
86+
# SageMath parsed files
87+
*.sage.py
88+
89+
# Environments
90+
.env
91+
.venv
92+
env/
93+
venv/
94+
ENV/
95+
env.bak/
96+
venv.bak/
97+
98+
# Spyder project settings
99+
.spyderproject
100+
.spyproject
101+
102+
# Rope project settings
103+
.ropeproject
104+
105+
# mkdocs documentation
106+
/site
107+
108+
# mypy
109+
.mypy_cache/
110+
.dmypy.json
111+
dmypy.json
112+
113+
# Pyre type checker
114+
.pyre/
115+
116+
# Custom
117+
*.txt
118+
*.apk
119+
*.zip
120+
*.tar.gz
121+
release/
122+
pakages/

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"python.formatting.provider": "black"
3+
}

0 commit comments

Comments
 (0)