-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit aa1385a
Showing
44 changed files
with
6,539 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,208 @@ | ||
# Modified from https://www.toptal.com/developers/gitignore/api/python,vim,pycharm | ||
|
||
### PyCharm ### | ||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider | ||
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 | ||
|
||
# PyCharm | ||
.idea | ||
|
||
# CMake | ||
cmake-build-*/ | ||
|
||
# File-based project format | ||
*.iws | ||
|
||
# IntelliJ | ||
out/ | ||
|
||
# mpeltonen/sbt-idea plugin | ||
.idea_modules/ | ||
|
||
# JIRA plugin | ||
atlassian-ide-plugin.xml | ||
|
||
# Crashlytics plugin (for Android Studio and IntelliJ) | ||
com_crashlytics_export_strings.xml | ||
crashlytics.properties | ||
crashlytics-build.properties | ||
fabric.properties | ||
|
||
### Python ### | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
develop-eggs/ | ||
dist/ | ||
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 | ||
*.py,cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
db.sqlite3 | ||
db.sqlite3-journal | ||
|
||
# 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 | ||
|
||
# PEP 582; used by e.g. github.com/David-OConnor/pyflow | ||
__pypackages__/ | ||
|
||
# Celery stuff | ||
celerybeat-schedule | ||
celerybeat.pid | ||
|
||
# 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/ | ||
|
||
# pytype static type analyzer | ||
.pytype/ | ||
|
||
### Vim ### | ||
# Swap | ||
[._]*.s[a-v][a-z] | ||
!*.svg # comment out if you don't need vector files | ||
[._]*.sw[a-p] | ||
[._]s[a-rt-v][a-z] | ||
[._]ss[a-gi-z] | ||
[._]sw[a-p] | ||
|
||
# Session | ||
Session.vim | ||
Sessionx.vim | ||
|
||
# Temporary | ||
.netrwhist | ||
*~ | ||
# Auto-generated tag files | ||
tags | ||
# Persistent undo | ||
[._]*.un~ | ||
|
||
# End of https://www.toptal.com/developers/gitignore/api/python,vim,pycharm | ||
|
||
# additional pycharm | ||
*.pycharm_helpers | ||
|
||
# additional Environments | ||
.env_* | ||
|
||
# johann-specific | ||
johann*.log | ||
johann*.log.* | ||
johann*.pid | ||
johann/celeryd.pid | ||
johann/plugins | ||
johann/requirements_base.txt | ||
johann/requirements_plugins.txt | ||
johann/run_conductor_pmtr* | ||
!johann/run_conductor_pmtr.default.sh | ||
!johann/run_conductor_pmtr.dev.sh | ||
johann/run_player_pmtr* | ||
!johann/run_player_pmtr.default.sh | ||
!johann/run_player_pmtr.dev.sh | ||
*.creds | ||
*.hosts.y*ml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Copyright (c) 2019-present, The Johann Authors. All Rights Reserved. | ||
# Use of this source code is governed by a BSD-3-clause license that can | ||
# be found in the LICENSE file. See the AUTHORS file for names of contributors. | ||
|
||
default: | ||
image: python:3.6 | ||
tags: | ||
- docker | ||
before_script: | ||
- python3 -V | ||
- make dev-setup | ||
- source ./venv/bin/activate | ||
|
||
variables: | ||
PIP_CACHE_DIR: "${CI_PROJECT_DIR}/.cache/pip" | ||
PRE_COMMIT_HOME: "${CI_PROJECT_DIR}/.cache/pre-commit" | ||
PYTHONPATH: "${CI_PROJECT_DIR}" | ||
|
||
stages: | ||
- lint | ||
- test | ||
|
||
.lint: | ||
stage: lint | ||
allow_failure: true | ||
|
||
lint: | ||
extends: .lint | ||
script: make lint | ||
cache: | ||
key: "${CI_JOB_NAME}" | ||
paths: | ||
- .cache/pip | ||
- .cache/pre-commit | ||
- venv/ | ||
|
||
safety: | ||
extends: .lint | ||
script: make safety | ||
cache: | ||
key: "${CI_JOB_NAME}" | ||
paths: | ||
- .cache/pip | ||
- venv/ | ||
|
||
.docker: | ||
variables: | ||
JOHANN_CORE_ROOT: . | ||
# https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#tls-enabled | ||
DOCKER_TLS_CERTDIR: "/certs" | ||
image: tiangolo/docker-with-compose | ||
services: | ||
- docker:19.03.12-dind | ||
before_script: | ||
- docker info | ||
- apk add bash | ||
|
||
test: | ||
stage: test | ||
extends: .docker | ||
script: make test | ||
|
||
clean: | ||
stage: .post | ||
when: always | ||
extends: .docker | ||
script: make clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# Copyright (c) 2019-present, The Johann Authors. All Rights Reserved. | ||
# Use of this source code is governed by a BSD-3-clause license that can | ||
# be found in the LICENSE file. See the AUTHORS file for names of contributors. | ||
exclude: "docs|.git|.tox" | ||
default_stages: [commit] | ||
default_language_version: | ||
python: python3.6 | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: master | ||
hooks: | ||
- id: check-byte-order-marker | ||
- id: check-executables-have-shebangs | ||
- id: trailing-whitespace | ||
- id: check-merge-conflict | ||
- id: check-docstring-first | ||
- id: check-added-large-files | ||
- id: name-tests-test | ||
- id: check-json | ||
- id: check-yaml | ||
exclude: tests/scores/malformed | ||
|
||
- repo: https://github.com/timothycrosley/isort | ||
rev: 5.0.2 | ||
hooks: | ||
- id: isort | ||
|
||
- repo: https://github.com/psf/black | ||
#rev: stable | ||
rev: cc2facaac69a8ffa4486e6fe498842debb17ce12 | ||
hooks: | ||
- id: black | ||
|
||
- repo: https://github.com/prettier/prettier | ||
rev: 2.0.5 | ||
hooks: | ||
- id: prettier | ||
args: [--prose-wrap=always, --print-width=88] | ||
exclude: tests/scores/malformed | ||
|
||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: 3.8.3 | ||
hooks: | ||
- id: flake8 | ||
args: [--config=setup.cfg] | ||
additional_dependencies: [flake8-bugbear] | ||
|
||
- repo: https://github.com/jazzband/pip-tools | ||
rev: 5.2.1 | ||
hooks: | ||
- id: pip-compile | ||
args: [--quiet, --generate-hashes, --no-emit-index-url] | ||
- id: pip-compile | ||
name: pip-compile-dev | ||
args: | ||
[ | ||
--quiet, | ||
--allow-unsafe, | ||
--generate-hashes, | ||
--no-emit-index-url, | ||
--output-file=requirements-dev.txt, | ||
requirements-dev.in, | ||
] | ||
files: ^requirements(-dev)?\.(in|txt)$ | ||
|
||
- repo: https://github.com/PyCQA/bandit | ||
rev: 1.6.2 | ||
hooks: | ||
- id: bandit | ||
entry: bandit -lll | ||
exclude: tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# This is the list of Johann authors for copyright purposes. | ||
|
||
# This does not necessarily list everyone who has contributed code; in | ||
# some cases, their employer may be the copyright holder. | ||
|
||
# Names should be added to this file as: | ||
# Name or Organization <email address> | ||
# The email address is not required for organizations. | ||
|
||
The Johns Hopkins University / Applied Physics Laboratory LLC | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
BSD 3-Clause License | ||
|
||
Copyright (c) 2019-present, The Johann Authors. | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
1. Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
|
||
3. Neither the name of the copyright holder nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE | ||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
Oops, something went wrong.