From 5453d7e3ea7638b96119dc85d498a04d8da24121 Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Fri, 5 Apr 2019 22:08:41 +0200 Subject: [PATCH] Fix gitignore --- .gitignore | 150 +++++++++++++++++++++++++-- server/activate.sh | 4 + server/nightr/strategies/__init__.py | 0 3 files changed, 148 insertions(+), 6 deletions(-) create mode 100644 server/nightr/strategies/__init__.py diff --git a/.gitignore b/.gitignore index 76f3a71..3322894 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ -# Created by https://www.gitignore.io/api/vim,emacs,android,pycharm+all,androidstudio,visualstudiocode -# Edit at https://www.gitignore.io/?templates=vim,emacs,android,pycharm+all,androidstudio,visualstudiocode +# Created by https://www.gitignore.io/api/vim,emacs,android,pycharm+all,androidstudio,visualstudiocode,python,java +# Edit at https://www.gitignore.io/?templates=vim,emacs,android,pycharm+all,androidstudio,visualstudiocode,python,java ### Android ### # Built application files @@ -233,9 +233,6 @@ dist/ # Flycheck flycheck_*.el -# server auth directory -/server/ - # projectiles files .projectile @@ -246,6 +243,25 @@ flycheck_*.el /network-security.data +### Java ### +# Compiled class file + +# Log file + +# BlueJ files +*.ctxt + +# Mobile Tools for Java (J2ME) + +# Package Files # +*.jar +*.nar +*.zip +*.tar.gz +*.rar + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml + ### PyCharm+all ### # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 @@ -321,6 +337,128 @@ modules.xml # Sonarlint plugin .idea/sonarlint +### Python ### +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +develop-eggs/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +pip-wheel-metadata/ +share/python-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: +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 + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don’t work, or not +# install all needed dependencies. +#Pipfile.lock + +# 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/ + ### Vim ### # Swap [._]*.s[a-v][a-z] @@ -350,4 +488,4 @@ tags # Ignore all local history of files .history -# End of https://www.gitignore.io/api/vim,emacs,android,pycharm+all,androidstudio,visualstudiocode +# End of https://www.gitignore.io/api/vim,emacs,android,pycharm+all,androidstudio,visualstudiocode,python,java diff --git a/server/activate.sh b/server/activate.sh index 5064527..7db2ab7 100755 --- a/server/activate.sh +++ b/server/activate.sh @@ -13,3 +13,7 @@ if (( $FIRST_RUN )); then echo Installing required Python packages pip install -Ur requirements.txt fi + +function run() { + python -m +} \ No newline at end of file diff --git a/server/nightr/strategies/__init__.py b/server/nightr/strategies/__init__.py new file mode 100644 index 0000000..e69de29