Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
ba12524
Split program into modules/files
lsaca05 Jan 21, 2022
7781a53
refactoring, random character data sample generator
lsaca05 Jan 29, 2022
ce75208
add linter (superlinter)
lsaca05 Feb 5, 2022
1d9a337
Commence mass linting
lsaca05 Feb 5, 2022
0d15313
auto linting/formatting
lsaca05 Feb 9, 2022
7bc81f9
we do a lil' refactoring + weighted model
lsaca05 Feb 19, 2022
e9cfcac
we do a little linting �
lsaca05 Feb 19, 2022
286c6ce
more linting, refactoring, start testing
lsaca05 Feb 26, 2022
dfef5e0
more linting, attempt to squash data images into 1D (fail)
lsaca05 Mar 5, 2022
950234c
more linting, stop pipeline failure with linter
lsaca05 Mar 5, 2022
61c1bbb
Create python-app.yml (#4)
lsaca05 Mar 5, 2022
51231ec
pytest any push
lsaca05 Mar 5, 2022
2d0561a
pytest any push
lsaca05 Mar 5, 2022
c1daa05
Merge branch 'refactor' of https://github.com/lsaca05/deepmorse-decod…
lsaca05 Mar 9, 2022
154c0f0
more linting + linter configs
lsaca05 Mar 9, 2022
a2e9934
isort and yamllint configs
lsaca05 Mar 9, 2022
6160068
yamllint ignores config directory hopefully
lsaca05 Mar 9, 2022
0cd880c
lint city
lsaca05 Mar 10, 2022
d8fd778
specify superlint config files
lsaca05 Mar 10, 2022
12c0d44
put linters in .github, add custom library for tests
lsaca05 Mar 10, 2022
13a4522
open linter path, remove pyAudio from requirements.txt
lsaca05 Mar 10, 2022
5715398
try fix linter
lsaca05 Mar 11, 2022
080715e
fix isort, maybe fix pipeline dependency installation
lsaca05 Mar 11, 2022
b3487d2
linting almost done
lsaca05 Mar 11, 2022
ccf395c
Please succeed linter and tester
lsaca05 Mar 11, 2022
7e7199e
try to switch pipeline to windows for PyAudio unofficial patch
lsaca05 Mar 15, 2022
455d4ad
try to switch pipeline to windows for PyAudio unofficial patch
lsaca05 Mar 15, 2022
9e7d7d5
stupid mistakes man
lsaca05 Mar 15, 2022
e34d2a4
stupid mistakes man
lsaca05 Mar 15, 2022
8e22edc
Merge branch 'refactor' of https://github.com/lsaca05/deepmorse-decod…
lsaca05 Mar 15, 2022
69d1d6a
somehow merge conflict artifacts not removed
lsaca05 Mar 15, 2022
f354db2
somehow NN broke
lsaca05 Apr 16, 2022
f781407
Revert "somehow merge conflict artifacts not removed"
lsaca05 Apr 16, 2022
fb95ea5
fix conflict
lsaca05 Apr 16, 2022
0090e10
move runtime file, fix anim + image gen, works again
lsaca05 Apr 16, 2022
30ec93a
try fix test reqs installation
lsaca05 Apr 16, 2022
2e8689c
move test out of tests folder just to see if pipeline works
lsaca05 Apr 16, 2022
78bc57e
temp disable pipeline pytest out of curiosity
lsaca05 Apr 16, 2022
e750858
character weights more accurate & readable, generated data made compa…
lsaca05 May 21, 2022
43d5302
add pytest.ini to maybe fix pipeline
lsaca05 May 23, 2022
5735e41
add main.py for pipeline compat
lsaca05 May 23, 2022
8a705c2
try change pytest command in pipeline
lsaca05 May 23, 2022
e43070b
attempts to fix pipeline
lsaca05 May 27, 2022
0119453
split pytest and runtime jobs
lsaca05 Jun 2, 2022
6ba3599
rename runtime job, fix pytest import
lsaca05 Jun 2, 2022
b61e17e
added python -m cope to pipeline jobs
lsaca05 Jun 2, 2022
39bdda3
add directory check
lsaca05 Jun 2, 2022
91fa8bc
where am i
lsaca05 Jun 2, 2022
8961210
more cope
lsaca05 Jun 3, 2022
25b9bc6
runtime pipeline fix
lsaca05 Jun 3, 2022
bbc0ab6
even more cope
lsaca05 Jun 3, 2022
9fe06d9
fix directory name in various files
lsaca05 Jun 3, 2022
028ee69
create morsewords file if does not exist
lsaca05 Jun 3, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[codespell]
skip=Volumes,venv,mymodel,*.txt
4 changes: 4 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
exclude=venv,configs
max-line-length=120
ignore=E203,E722,W503
62 changes: 62 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
---
#################################
#################################
## Super Linter GitHub Actions ##
#################################
#################################
name: Lint Code Base

#
# Documentation:
# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
#

#############################
# Start the job on all push #
#############################
on:
push:
branches-ignore: [master, main]
# Remove the line above to run when pushing to master
pull_request:
branches: [master, main]

###############
# Set the Job #
###############
jobs:
build:
# Name the Job
name: Lint Code Base
# Set the agent to run on
runs-on: ubuntu-latest

##################
# Load all steps #
##################
steps:
##########################
# Checkout the code base #
##########################
- name: Checkout Code
uses: actions/checkout@v2
with:
# Full git history to get proper changed files in `super-linter`
fetch-depth: 0

################################
# Run Linter against code base #
################################
- name: Lint Code Base
uses: github/super-linter@v4
env:
VALIDATE_ALL_CODEBASE: false
continue-on-error: true
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
YAML_CONFIG_FILE: .yamllint.yml
PYTHON_FLAKE8_CONFIG_FILE: .flake8
PYTHON_PYLINT_CONFIG_FILE: .pylintrc
PYTHON_ISORT_CONFIG_FILE: .pyproject.toml
VALIDATE_PYTHON_PYLINT: false
LINTER_RULES_PATH: .
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, pull_request]

jobs:
build:
# Running on windows for unofficial PyAudio patch
runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: "3.9.6"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest
# sudo apt-get install portaudio19-dev python-pyaudio
# if (-f requirements.txt); then pip install -r requirements.txt; fi
python -m pip install -r requirements.txt
# https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio
python -m pip install custom_py_libs/PyAudio-0.2.11-cp39-cp39-win_amd64.whl
- name: Test with pytest
run: |
python -m pytest
36 changes: 36 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: Runtime test

on: [push, pull_request]

jobs:
build:
# Running on windows for unofficial PyAudio patch
runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9.6
uses: actions/setup-python@v2
with:
python-version: "3.9.6"
- name: Check directories
run: |
pwd
Get-ChildItem
cd ..
Get-ChildItem
- name: Install dependencies
run: |
python -m pip install --upgrade pip
# sudo apt-get install portaudio19-dev python-pyaudio
# if (-f requirements.txt); then pip install -r requirements.txt; fi
python -m pip install -r requirements.txt
# https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio
python -m pip install custom_py_libs/PyAudio-0.2.11-cp39-cp39-win_amd64.whl
- name: Generate data
run: |
python main.py --generate
- name: Train neural network
run: |
python main.py --train
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ target/

# Jupyter Notebook
.ipynb_checkpoints
*.ipynb

# IPython
profile_default/
Expand Down Expand Up @@ -129,4 +130,8 @@ dmypy.json
.pyre/

# generated data
Volumes/
Volumes/
source/*.txt

# new code (WIP)
new/
2 changes: 2 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[pylint]
disable=not-callable ; 1 false positive from using morse function
3 changes: 3 additions & 0 deletions .pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[tool.isort]
profile = "black"
skip_glob = ["venv/*", "Volumes/*" ]
3 changes: 3 additions & 0 deletions .yamllint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
ignore: |
configs/
Loading