generated from dhmit/boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
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 ab026ba
Showing
58 changed files
with
10,788 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,3 @@ | ||
{ | ||
"presets": ["@babel/preset-env", "@babel/preset-react"] | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
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,61 @@ | ||
{ | ||
"parser": "babel-eslint", | ||
|
||
"env": { | ||
"browser": true | ||
}, | ||
|
||
"extends": [ | ||
"plugin:react/recommended" | ||
], | ||
|
||
|
||
"plugins": [ | ||
"react" | ||
], | ||
|
||
"rules": { | ||
"arrow-body-style": ["off"], | ||
"class-methods-use-this": ["off"], | ||
"comma-dangle": ["warn"], | ||
"dot-notation": ["off"], | ||
"eqeqeq": ["error", "always"], | ||
"import/extensions": ["off"], | ||
"import/prefer-default-export": ["off"], | ||
"indent": ["warn", 4], | ||
"linebreak-style": ["off"], | ||
"max-classes-per-file": ["off"], | ||
"max-len": ["warn", { "code": 100, "ignoreUrls": true }], | ||
"no-console": ["off"], | ||
"no-multi-spaces": ["error", { "ignoreEOLComments": true }], | ||
"no-multiple-empty-lines": ["off"], | ||
"no-param-reassign": ["off"], | ||
"no-plusplus": ["off"], | ||
"no-restricted-syntax": ["off"], | ||
"no-unused-vars": ["warn", { "argsIgnorePattern": "^_" }], | ||
"no-useless-constructor": ["off"], | ||
"object-curly-spacing": ["warn"], | ||
"object-shorthand": ["off"], | ||
"operator-linebreak": ["warn"], | ||
"prefer-destructuring": ["off"], | ||
"prefer-template": ["off"], | ||
"quote-props": ["error", "consistent"], | ||
"quotes": ["warn"], | ||
"radix": ["off"], | ||
"react/no-unescaped-entities": [ "error", { "forbid": [">", "}"] }], | ||
"semi": ["error", "always"] | ||
}, | ||
|
||
"settings": { | ||
"react": { | ||
"version": "detect" | ||
} | ||
}, | ||
|
||
"overrides": [ | ||
{ | ||
"files": [ "**/*.test.js" ], | ||
"env": { "jest": true } | ||
} | ||
] | ||
} |
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,79 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- '*_CI' # run on branches suffixed with _CI | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
############################################################################## | ||
# Python jobs | ||
############################################################################## | ||
backend_tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.9' | ||
architecture: 'x64' | ||
- name: Install Python packages and Ubuntu dependencies | ||
run: | | ||
pip install -r requirements.txt | ||
- name: Run Django tests | ||
run: | | ||
cd backend | ||
python manage.py migrate | ||
python manage.py test | ||
python_linters: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.9' | ||
architecture: 'x64' | ||
- name: Install Python packages | ||
run: | | ||
pip install -r requirements.txt | ||
pip install pylint | ||
- name: Run pylint on backend/ | ||
run: pylint backend/ | ||
|
||
|
||
############################################################################## | ||
# JS jobs | ||
############################################################################## | ||
|
||
js_linters: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '14.17' | ||
- name: Install frontend deps and eslint | ||
run: | | ||
npm ci | ||
- name: Run eslint on frontend/src | ||
run: | | ||
./node_modules/.bin/eslint --max-warnings 0 frontend/**/*.js | ||
frontend_tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '14.17' | ||
- name: Install frontend deps | ||
run: | | ||
npm ci | ||
# - name: Run frontend tests | ||
# run: | | ||
# cd frontend | ||
# CI=true npm run test | ||
|
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,159 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# 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/ | ||
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: | ||
*.log | ||
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 | ||
|
||
# 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/ | ||
|
||
# PyCharm (but not everything!) | ||
.idea/workspace.xml | ||
.idea/pylint.xml | ||
.idea/dataSources.xml | ||
.idea/dataSources.local.xml | ||
.idea/usage.statistics.xml | ||
.idea/tasks.xml | ||
.idea/runConfigurations | ||
|
||
# dependencies | ||
frontend/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
build/ | ||
static/ | ||
|
||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
*.swp | ||
|
||
# Build byproducts | ||
webpack-stats-dev.json | ||
webpack-stats.json | ||
|
||
# Google authentication byproducts | ||
token.pickle | ||
|
||
node_modules |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.