Skip to content

Commit dab3dba

Browse files
authored
Merge branch 'aboutcode-org:main' into main
2 parents 79f5016 + 1ddc619 commit dab3dba

188 files changed

Lines changed: 3564 additions & 2820 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"name": "DejaCode Demo (Codespaces only)",
3+
"dockerComposeFile": "../../compose.demo.yml",
4+
"service": "web",
5+
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
6+
"overrideCommand": false,
7+
"hostRequirements": {
8+
"cpus": 4
9+
},
10+
"forwardPorts": [8000],
11+
"portsAttributes": {
12+
"8000": {
13+
"label": "DejaCode",
14+
"onAutoForward": "notify"
15+
}
16+
},
17+
"customizations": {
18+
"codespaces": {
19+
"openFiles": []
20+
},
21+
"vscode": {
22+
"extensions": [],
23+
"settings": {
24+
"chat.disableAIFeatures": true,
25+
"telemetry.telemetryLevel": "off",
26+
"workbench.tips.enabled": false,
27+
"workbench.startupEditor": "none",
28+
"workbench.editor.enablePreview": false,
29+
"security.workspace.trust.enabled": false,
30+
"extensions.autoCheckUpdates": false,
31+
"extensions.ignoreRecommendations": true,
32+
"git.enabled": false,
33+
"git.autorefresh": false,
34+
"git.decorations.enabled": false,
35+
"scm.diffDecorations": "none",
36+
"editor.minimap.enabled": false,
37+
"editor.quickSuggestions": {
38+
"other": "off",
39+
"comments": "off",
40+
"strings": "off"
41+
},
42+
"editor.suggestOnTriggerCharacters": false,
43+
"editor.wordBasedSuggestions": "off",
44+
"editor.parameterHints.enabled": false,
45+
"editor.codeLens": false,
46+
"editor.lightbulb.enabled": "off",
47+
"editor.inlayHints.enabled": "off",
48+
"editor.occurrencesHighlight": "off",
49+
"editor.selectionHighlight": false,
50+
"editor.renderLineHighlight": "none",
51+
"editor.renderWhitespace": "none",
52+
"editor.formatOnSave": false,
53+
"editor.accessibilitySupport": "off",
54+
"breadcrumbs.enabled": false,
55+
"terminal.integrated.enablePersistentSessions": false,
56+
"terminal.integrated.gpuAcceleration": "off",
57+
"files.watcherExclude": {
58+
"**/.git/**": true,
59+
"**/data/**": true,
60+
"**/static/**": true,
61+
"**/media/**": true,
62+
"**/thirdparty/**": true,
63+
"**/*.dist": true
64+
},
65+
"search.exclude": {
66+
"**/.git": true,
67+
"**/data": true,
68+
"**/static": true,
69+
"**/media": true,
70+
"**/thirdparty": true
71+
}
72+
}
73+
}
74+
}
75+
}

.env.demo

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
POSTGRES_DB=dejacode_demo_db
2+
POSTGRES_USER=dejacode
3+
POSTGRES_PASSWORD=dejacode
4+
POSTGRES_INITDB_ARGS="--encoding=UTF-8 --lc-collate=en_US.UTF-8 --lc-ctype=en_US.UTF-8"
5+
6+
DATABASE_HOST=db
7+
DATABASE_NAME=dejacode_demo_db
8+
DATABASE_USER=dejacode
9+
DATABASE_PASSWORD=dejacode
10+
11+
SECRET_KEY=insecure-demo-key
12+
DEJACODE_DEBUG=True
13+
ALLOWED_HOSTS=*
14+
CSRF_TRUSTED_ORIGINS="https://*.app.github.dev,http://localhost:8000"
15+
X_FRAME_OPTIONS=SAMEORIGIN
16+
SECURE_CROSS_ORIGIN_OPENER_POLICY=None
17+
18+
DEJACODE_ASYNC=False
19+
CLAMD_ENABLED=False
20+
21+
DJANGO_SUPERUSER_USERNAME=demo
22+
DJANGO_SUPERUSER_EMAIL=demo@example.com
23+
DJANGO_SUPERUSER_PASSWORD=demo
24+
LOGIN_FORM_ALERT='<div class="alert alert-success">Username: demo<br>Password: demo</div>'
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Check code and docs validation
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
branches:
8+
- main
9+
10+
jobs:
11+
check-code-and-docs-validation:
12+
runs-on: ubuntu-24.04
13+
permissions:
14+
contents: read
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
19+
with:
20+
persist-credentials: false # do not keep the token around
21+
22+
- name: Set up Python
23+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
24+
with:
25+
python-version: "3.14"
26+
27+
- name: Install uv from vendored wheel
28+
run: pip install --no-index --find-links=./thirdparty/dist uv
29+
30+
- name: Validate code format
31+
run: make check
32+
33+
- name: Build the documentation
34+
run: make docs

.github/workflows/run-unit-tests-docker.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,10 @@ jobs:
2222
- name: Generate the .env file and the SECRET_KEY
2323
run: make envfile
2424

25+
- name: Build Docker image
26+
run: docker compose -f compose.yml -f compose.build.yml build
27+
2528
- name: Run tests
26-
run: docker compose run web python ./manage.py test --verbosity=2 --noinput
29+
run: |
30+
docker compose -f compose.yml -f compose.build.yml run web \
31+
python ./manage.py test --verbosity=2 --noinput --parallel auto

.github/workflows/run-unit-tests.yml

Lines changed: 0 additions & 75 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ include
1616
.settings
1717
TAGS
1818
.idea
19+
.vscode
1920
Include
2021
Lib
2122
.env

CHANGELOG.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,28 @@
11
Release notes
22
=============
33

4+
### Version 5.8.1
5+
6+
* fix: improve performances and logging for SCIO importer (#546)
7+
* feat: modernize Docker Compose setup and simplify installation docs (#544)
8+
9+
### Version 5.8.0
10+
11+
* feat: [five-c] Compliance dashboard export/report by @tdruez in https://github.com/aboutcode-org/dejacode/pull/522
12+
* feat: [five-c] Compliance extended report set by @tdruez in https://github.com/aboutcode-org/dejacode/pull/523
13+
* feat: [five-c] User experience (UX) enhancements by @tdruez in https://github.com/aboutcode-org/dejacode/pull/524
14+
* feat: [five-c] Compliance dashboards improved by @tdruez in https://github.com/aboutcode-org/dejacode/pull/532
15+
* feat: [five-c] Compliance dashboards extended by @tdruez in https://github.com/aboutcode-org/dejacode/pull/537
16+
* fix: REQUESTS_TIMEOUT by converting to int by @rogu-beta in https://github.com/aboutcode-org/dejacode/pull/526
17+
* feat: replace pip install by uv and lock file by @tdruez in https://github.com/aboutcode-org/dejacode/pull/529
18+
* chore: upgrade multiple dependencies by @tdruez in https://github.com/aboutcode-org/dejacode/pull/530
19+
* chore: upgrade django-registration to latest version by @tdruez in https://github.com/aboutcode-org/dejacode/pull/531
20+
* chore: upgrade dependencies by @tdruez in https://github.com/aboutcode-org/dejacode/pull/538
21+
* chore: remove the dependency on gitpython by @tdruez in https://github.com/aboutcode-org/dejacode/pull/539
22+
* feat: add create_dependencies option to all import forms by @tdruez in https://github.com/aboutcode-org/dejacode/pull/540
23+
* chore: update seed data and add instructions by @tdruez in https://github.com/aboutcode-org/dejacode/pull/541
24+
* feat: add a set_key method on AbstractAPIToken by @tdruez in https://github.com/aboutcode-org/dejacode/pull/521
25+
426
### Version 5.7.1
527

628
- feat: Product compliance tab

0 commit comments

Comments
 (0)