Skip to content

Commit

Permalink
Major refactor
Browse files Browse the repository at this point in the history
DI Based Event Handler
----------------------

- Kizuna now has adapters
- Kizuna now has skills
- Kizuna is now plugin based

Misc
----

- Moves a ton of stuff to python-slacktools
- Change name to kazuha
- Deletes unused modules
  • Loading branch information
austinpray committed Apr 28, 2019
1 parent c98cda2 commit 41a852b
Show file tree
Hide file tree
Showing 105 changed files with 1,441 additions and 7,555 deletions.
235 changes: 15 additions & 220 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,220 +1,15 @@
static/tmp/

# Created by .ignore support plugin (hsz.mobi)
### Node template
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

### Python template
# 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/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
#*.log
.static_storage/
.media/
local_settings.py

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# 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/

### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff:
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/dictionaries

# Sensitive or high-churn files:
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.xml
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml

# Gradle:
.idea/**/gradle.xml
.idea/**/libraries

# CMake
cmake-build-debug/

# Mongo Explorer plugin:
.idea/**/mongoSettings.xml

## File-based project format:
*.iws

## Plugin-specific files:

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

*

!bin/
!config/
!db/
!scripts/
!src/
!static/
!vendor/

!alembic.ini
!requirements.in
!requirements.txt
!setup.cfg
!setup.py
22 changes: 20 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
SLACK_API_TOKEN=xoxb-BOGUS
KIZUNA_ENV=development

# used by the web interface for authentication
FERNET_KEY=HYgZOdpD7D3mpX0aXB4hfzQNwdFcllMZqSmOANSmABg=
SECRET_KEY=cftvCmKSjcgrMU7p920kue+ZxWzoQ3Os
SECRET_KEY=cftvCmKSjcgrMU7p920kue+ZxWzoQ3Os
KIZUNA_API_KEY=BOGUSBOGUSBOGUS

# slack related
## https://api.slack.com/web#authentication
SLACK_API_TOKEN=xoxb-BOGUS
## https://api.slack.com/docs/verifying-requests-from-slack
SLACK_SIGNING_SECRET=BOGUS
SLACK_VERIFICATION_TOKEN=BOGUS

# uploading images to s3
AWS_ACCESS_KEY_ID=BOGUS
AWS_SECRET_ACCESS_KEY=BOGUS

# some debugging settings
PYTHONUNBUFFERED=TRUE
FLASK_DEBUG=1
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ before_install:
--project kizuna-188702
- make dev_info
install:
- make pull
- make registry_pull
- make build
script:
- make pep8
- make test
#- make pep8
#- make test
deploy:
provider: script
skip_cleanup: true
Expand Down
5 changes: 0 additions & 5 deletions Dockerfile.api

This file was deleted.

20 changes: 0 additions & 20 deletions Dockerfile.base

This file was deleted.

5 changes: 0 additions & 5 deletions Dockerfile.web

This file was deleted.

5 changes: 0 additions & 5 deletions Dockerfile.worker

This file was deleted.

Loading

0 comments on commit 41a852b

Please sign in to comment.