-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial extraction of application into CodeWOF repo
This pull request does the following: - Replaces the existing project with a project that was being developed within the dthm4kaiako project. - The application has been extracted (as not all components of dthm4kaiako) are required, however the site is still in a state of being constructed. - The name is changed from Bitfit, to CodeWOF (short for Code Warrant of Fitness).
- Loading branch information
1 parent
3721c1a
commit 883d8e0
Showing
687 changed files
with
10,568 additions
and
10,565 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,9 @@ | ||
[run] | ||
include = */codewof/* | ||
omit = *migrations*, *tests* | ||
plugins = | ||
django_coverage_plugin | ||
branch = True | ||
|
||
[report] | ||
fail_under = 20 |
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,6 @@ | ||
codewof/build/* | ||
codewof/temp/* | ||
codewof/node_modules/* | ||
**/__pycache__/** | ||
**/.mypy_cache__/** | ||
**/.pytest_cache__/** |
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,33 @@ | ||
# http://editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.{py,rst,ini}] | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.py] | ||
line_length=120 | ||
known_first_party=codewof | ||
multi_line_output=3 | ||
default_section=THIRDPARTY | ||
|
||
[*.{html,css,scss,json,yml}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[Makefile] | ||
indent_style = tab | ||
|
||
[nginx.conf] | ||
indent_style = space | ||
indent_size = 2 |
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 @@ | ||
* text=auto |
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
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,14 @@ | ||
[MASTER] | ||
load-plugins=pylint_common, pylint_django | ||
|
||
[FORMAT] | ||
max-line-length=120 | ||
|
||
[MESSAGES CONTROL] | ||
disable=missing-docstring,invalid-name | ||
|
||
[DESIGN] | ||
max-parents=13 | ||
|
||
[TYPECHECK] | ||
generated-members=REQUEST,acl_users,aq_parent,"[a-zA-Z]+_set{1,2}",save,delete |
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,6 @@ | ||
# Settings for pyup bot | ||
# Details here: https://pyup.io/docs/configuration/ | ||
|
||
branch: develop | ||
label_prs: backend | ||
branch_prefix: pyup/ |
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,27 @@ | ||
sudo: required | ||
services: | ||
- docker | ||
language: python | ||
python: | ||
- '3.6' | ||
before_install: | ||
# See https://github.com/travis-ci/travis-ci/issues/7940 | ||
- sudo rm -f /etc/boto.cfg | ||
install: | ||
- sudo docker --version | ||
- sudo docker-compose --version | ||
jobs: | ||
include: | ||
- stage: test | ||
name: "Run test suite" | ||
script: ./dev ci test_suite | ||
- script: ./dev ci style | ||
name: "Run style checker" | ||
notifications: | ||
email: false | ||
slack: | ||
rooms: deptfunstuff:abJKvzApk5SKtcEyAgtswXAv | ||
on_success: change | ||
on_failure: change | ||
stages: | ||
- name: 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,5 @@ | ||
# Changelog | ||
|
||
## 0.1.0 | ||
|
||
Initial release of CodeWOF website. |
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,31 @@ | ||
# This Dockerfile is based off the Google App Engine Python runtime image | ||
# https://github.com/GoogleCloudPlatform/python-runtime | ||
FROM uccser/django:2.1.5 | ||
|
||
# Add metadata to Docker image | ||
LABEL maintainer="[email protected]" | ||
|
||
# Set terminal to be noninteractive | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
ENV DJANGO_PRODUCTION=True | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
binutils \ | ||
libproj-dev \ | ||
gdal-bin \ | ||
--no-install-recommends --no-install-suggests \ | ||
&& apt-get -y --purge autoremove \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
EXPOSE 8080 | ||
RUN mkdir /codewof | ||
WORKDIR /codewof | ||
|
||
# Copy and install Python dependencies | ||
COPY requirements /requirements | ||
RUN /docker_venv/bin/pip3 install -r /requirements/production.txt | ||
|
||
ADD ./codewof /codewof/ | ||
|
||
CMD /codewof/docker-production-entrypoint.sh |
Oops, something went wrong.