Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysyngsun committed Feb 20, 2019
0 parents commit 2396975
Show file tree
Hide file tree
Showing 115 changed files with 9,110 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[run]
branch = True
source = .
data_file=/tmp/coverage
omit =
mitxpro/wsgi.py
manage.py
./.tox/*
*/migrations/*
*_test.py
*_tests.py

[report]
exclude_lines =
pragma: no cover
show_missing = True
precision = 2

[html]
directory = ${COVERAGE_DIR}
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.tox
.cache
htmlcov
.coverage
node_modules
staticfiles/
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
root = true

[*.py]
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
insert_final_newline = true

[*.js]
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
insert_final_newline = true
11 changes: 11 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
CELERY_TASK_ALWAYS_EAGER=True
DJANGO_LOG_LEVEL=INFO
LOG_LEVEL=INFO
SENTRY_LOG_LEVEL=ERROR
MAILGUN_KEY=
MAILGUN_URL=
MAILGUN_RECIPIENT_OVERRIDE=
SECRET_KEY=
STATUS_TOKEN=
UWSGI_THREAD_COUNT=5
SENTRY_DSN=
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "eslint-config-mitodl"
}
18 changes: 18 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[ignore]
.*/node_modules/fbjs/.*
.*/node_modules/draft-js/.*
.*/node_modules/draftjs-utils/.*
.*/node_modules/react-event-listener/src/index.js
.*.git/.*

[include]
./static/js

[libs]
./static/js/flow/declarations.js
./flow-typed/npm/

[options]
esproposal.class_static_fields=enable
esproposal.class_instance_fields=enable
suppress_comment= \\(.\\|\n\\)*\\$FlowFixMe
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
labels: bug
name: "Bug Report"
about: "Something isn't quite right"
---
### Steps to Reproduce

(List or Description)

### Expected Behavior

(Optional)

### Actual Behavior

(Optional)

### Stacktrace

(Optional)

### Related Issues

(Optional)

### Screenshot or Screencast

(Optional)
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: New Feature
about: "New feature to implement"
---
As a X, I'd like to Y

#### Designs and Mockups



#### Acceptance Criteria:

- [ ] Requirement

#### Out of Scope

- Not going to do
41 changes: 41 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
labels: "Work in Progress"
name: "Pull Request"
about: "Regular Pull Request"
---

#### Pre-Flight checklist

- [ ] Screenshots and design review for any changes that affect layout or styling
- [ ] Desktop screenshots
- [ ] Mobile width screenshots
- [ ] Tag @ferdi or @pdpinch for review
- [ ] Migrations
- [ ] Migration is backwards-compatible with current production code
- [ ] Testing
- [ ] Code is tested
- [ ] Changes have been manually tested
- [ ] Settings
- [ ] New settings are documented and present in `app.json`
- [ ] New settings have reasonable development defaults, if applicable

#### What are the relevant tickets?
(Required)

#### What's this PR do?
(Required)

#### How should this be manually tested?
(Required)

#### Where should the reviewer start?
(Optional)

#### Any background context you want to provide?
(Optional)

#### Screenshots (if appropriate)
(Optional)

#### What GIF best describes this PR or how it makes you feel?
(Optional)
13 changes: 13 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/rfc_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: 'RFC: '
labels: RFC
name: "Request For Comment"
about: "Put up an RFC"
---


[Rendered](https://github.com/mitodl/open-discussions/blob/COMMIT_BLOB/docs/rfcs/XXXX-feature-name.md)

#### Relevant Issues

#### Summary
103 changes: 103 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
./lib/
./lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# 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/
coverage/
.nyc_output/

# Translations
*.mo
*.pot

# Django stuff:
*.log
celerybeat-schedule.db

# Sphinx documentation
docs/_build/

# PyBuilder
target/

#Ipython/Jupyter Notebook
.ipynb_checkpoints
*.ipynb

# Heroku/Foreman
.env

# webpack
static/bundles
node_modules

# JS directories
!static/js/lib

# Editor stuff
*.swp
*.orig

/nbproject
.idea/
.redcar/
codekit-config.json
.pycharm_helpers/

.project
.pydevproject

*.DS_Store

# Django static
staticfiles/

.venv
release-notes-checklist

# Webpack
webpack-stats.json

# Celery Beat
celerybeat-schedule
2 changes: 2 additions & 0 deletions .istanbul.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
instrumentation:
excludes: ['**/*_test.js']
8 changes: 8 additions & 0 deletions .rsync-ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
.git
.tox
.rsync-ignore
Makefile
README.rst
.DS_Store
.idea/
39 changes: 39 additions & 0 deletions .sass-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
options:
merge-default-rules: false
files:
include: 'static/scss/**/*.scss'
rules:
extends-before-mixins: 2
extends-before-declarations: 2
placeholder-in-extend: 2
mixins-before-declarations: 2
no-warn: 1
no-duplicate-properties: 2
no-debug: 1
no-important: 0
no-empty-rulesets: 2
no-misspelled-properties: 2
no-mergeable-selectors: 2
no-trailing-whitespace: 2
trailing-semicolon: 2
declarations-before-nesting: 2
space-between-parens: 2
no-vendor-prefixes: 2
one-declaration-per-line: 2
space-before-colon: 2
space-after-colon: 2
space-before-bang: 2
hex-notation:
- 2
-
style: lowercase
indentation:
- 2
-
size: 2
brace-style:
- 2
-
allow-single-line: false
empty-line-between-blocks: 2
space-before-brace: 2
26 changes: 26 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
sudo: false
# Set Ruby as the language so it doesn't download the pip things. Instead, let docker do that.
language: ruby

matrix:
include:
- install:
- env | grep TRAVIS > .env
- env | grep CI >> .env
- docker-compose -f docker-compose.yml -f docker-compose.travis.yml run celery echo
script: (docker-compose -f docker-compose.yml -f docker-compose.travis.yml up celery &); sleep 5; docker-compose -f docker-compose.yml -f docker-compose.travis.yml run web tox
services:
- docker
env:
name: Python
- install:
- env | grep TRAVIS > .env
- env | grep CI >> .env
# Uncomment after we upload docker images
# - docker build -t travis-watch -f ./travis/Dockerfile-travis-watch .
- docker build -t travis-watch -f ./Dockerfile-node .
script: bash ./travis/js_tests.sh
services:
- docker
env:
name: JavaScript
1 change: 1 addition & 0 deletions Aptfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
libxmlsec1-dev
Loading

0 comments on commit 2396975

Please sign in to comment.