Skip to content

Commit 66e61e8

Browse files
French (#428)
* Bump certifi from 2021.10.8 to 2022.12.7 in /webcdi Bumps [certifi](https://github.com/certifi/python-certifi) from 2021.10.8 to 2022.12.7. - [Release notes](https://github.com/certifi/python-certifi/releases) - [Commits](certifi/python-certifi@2021.10.08...2022.12.07) --- updated-dependencies: - dependency-name: certifi dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * French Changes * French Changes * #400 Remove some download options * Bump cryptography from 36.0.0 to 39.0.1 in /webcdi Bumps [cryptography](https://github.com/pyca/cryptography) from 36.0.0 to 39.0.1. - [Release notes](https://github.com/pyca/cryptography/releases) - [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst) - [Commits](pyca/cryptography@36.0.0...39.0.1) --- updated-dependencies: - dependency-name: cryptography dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * Force admin language to English * Force admin to english * french translations * french translations * Changes as per VM spec * Changes as per VM spec * Bump django from 3.2 to 3.2.18 in /webcdi Bumps [django](https://github.com/django/django) from 3.2 to 3.2.18. - [Release notes](https://github.com/django/django/releases) - [Commits](django/django@3.2...3.2.18) --- updated-dependencies: - dependency-name: django dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * days to 1095 * days to 1095 * Adding Cecile demographic file * Adding Cecile demographic file * Adding Cecile demographic file * Bump pillow from 9.0.1 to 9.3.0 in /webcdi Bumps [pillow](https://github.com/python-pillow/Pillow) from 9.0.1 to 9.3.0. - [Release notes](https://github.com/python-pillow/Pillow/releases) - [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst) - [Commits](python-pillow/Pillow@9.0.1...9.3.0) --- updated-dependencies: - dependency-name: pillow dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * Adding Cecile demographic file * Adding Cecile demographic file * Adding Cecile demographic file * Add Study amends * Add Study amends * Amend French * Amend French * Amend French * Translation changes for Cecile * Translation changes for Cecile * Translation changes for Cecile * Translation changes for Cecile * Cecile Education categories * French Changes * French Changes * Swap easiest and hardest in French * French changes * French changes * Additional Cecile changes * Cecile changes * Cecile changes * Cecile changes * Cecile changes * Cecile changes * Cecile changes * Cecile Changes * Cecile Changes * Cecile Changes * Cecile Changes --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent a2fc5f7 commit 66e61e8

File tree

54 files changed

+8252
-4651
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+8252
-4651
lines changed

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
DEBUG=true

.githooks/pre-commit

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#!/bin/sh
2+
#
3+
# An example hook script to verify what is about to be committed.
4+
# Called by "git commit" with no arguments. The hook should
5+
# exit with non-zero status after issuing an appropriate message if
6+
# it wants to stop the commit.
7+
#
8+
export files=$(git status -s | grep -E '\.py$' | cut -c 4-)
9+
code_exit=0
10+
if [[ $files != *".py"* ]];
11+
then
12+
exit 0
13+
fi
14+
echo "Isort format fix: "
15+
python -m isort --check --only-modified --remove-redundant-aliases --supported-extension py --python-version 38 --profile black $files
16+
code_exit+=$?
17+
python -m isort --quiet --only-modified --remove-redundant-aliases --only-modified --supported-extension py --python-version 38 --profile black $files
18+
19+
echo "Black format fix: "
20+
python -m black --check $files
21+
code_exit+=$?
22+
python -m black --quiet $files
23+
24+
echo "Flake8 Check: "
25+
python -m flake8 --extend-ignore=E501,F541,F811,W605,E722,E265,F405,W291,E203,F403 $files
26+
code_exit+=$?
27+
28+
if [ $code_exit -gt 0 ]
29+
then
30+
echo "Some changes were done or requested by the linters and formatters [isort, black & flake8]
31+
Please fix requested changes and add new changes before committing again."
32+
exit 1
33+
fi
34+
# Redirect output to stderr.
35+
exec 1>&2
36+
37+
38+

local-Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM python:3.8-bullseye
2+
3+
COPY . /app
4+
5+
WORKDIR /app
6+
RUN apt-get -y update
7+
RUN apt-get -y install libcairo2-dev
8+
RUN apt-get install gettext -y
9+
10+
RUN pip install -r ./webcdi/requirements.txt
11+

local-docker-compose.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: '3'
2+
3+
services:
4+
web:
5+
build:
6+
context: .
7+
dockerfile: local-Dockerfile
8+
command: python manage.py runserver 0.0.0.0:8000
9+
volumes:
10+
- ./webcdi:/app
11+
ports:
12+
- "8000:8000"
13+
env_file:
14+
- .env
15+

0 commit comments

Comments
 (0)