Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
aisbf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexlab
aisbf
Commits
a702757e
Commit
a702757e
authored
May 10, 2026
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test(license): tighten Studio frontend header checks
parent
feef6d57
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
2 deletions
+19
-2
studio.css
static/dashboard/studio.css
+2
-0
studio.js
static/dashboard/studio.js
+2
-0
studio.html
templates/dashboard/studio.html
+2
-0
test_license_headers.py
tests/test_license_headers.py
+13
-2
No files found.
static/dashboard/studio.css
View file @
a702757e
/*
/*
* Copyright (C) 2026 Stefy Lanza <stefy@nexlab.net>
* Copyright (C) 2026 Stefy Lanza <stefy@nexlab.net>
*
*
* AISBF - AI Service Broker Framework || AI Should Be Free
*
* This program is free software: you can redistribute it and/or modify
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* the Free Software Foundation, either version 3 of the License, or
...
...
static/dashboard/studio.js
View file @
a702757e
/*
/*
* Copyright (C) 2026 Stefy Lanza <stefy@nexlab.net>
* Copyright (C) 2026 Stefy Lanza <stefy@nexlab.net>
*
*
* AISBF - AI Service Broker Framework || AI Should Be Free
*
* This program is free software: you can redistribute it and/or modify
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* the Free Software Foundation, either version 3 of the License, or
...
...
templates/dashboard/studio.html
View file @
a702757e
<!--
<!--
Copyright (C) 2026 Stefy Lanza <stefy@nexlab.net>
Copyright (C) 2026 Stefy Lanza <stefy@nexlab.net>
AISBF - AI Service Broker Framework || AI Should Be Free
This program is free software: you can redistribute it and/or modify
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
the Free Software Foundation, either version 3 of the License, or
...
...
tests/test_license_headers.py
View file @
a702757e
...
@@ -35,6 +35,17 @@ EXPECTED_TASK_2_STUDIO_FRONTEND_TARGETS = (
...
@@ -35,6 +35,17 @@ EXPECTED_TASK_2_STUDIO_FRONTEND_TARGETS = (
Path
(
"static/dashboard/studio.css"
),
Path
(
"static/dashboard/studio.css"
),
)
)
EXPECTED_TASK_2_FRONTEND_HEADER_SNIPPETS
=
(
'Copyright (C) 2026 Stefy Lanza <stefy@nexlab.net>'
,
'AISBF - AI Service Broker Framework || AI Should Be Free'
,
'This program is free software: you can redistribute it and/or modify'
,
'it under the terms of the GNU General Public License as published by'
,
'This program is distributed in the hope that it will be useful,'
,
'MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.'
,
'GNU General Public License for more details.'
,
'You should have received a copy of the GNU General Public License'
,
)
def
_read_top_level_docstring
(
path
:
Path
)
->
str
:
def
_read_top_level_docstring
(
path
:
Path
)
->
str
:
content
=
path
.
read_text
(
encoding
=
"utf-8"
)
content
=
path
.
read_text
(
encoding
=
"utf-8"
)
...
@@ -71,5 +82,5 @@ def test_task_2_studio_frontend_files_use_aisbf_gpl_comment_header_convention():
...
@@ -71,5 +82,5 @@ def test_task_2_studio_frontend_files_use_aisbf_gpl_comment_header_convention():
content
=
(
repo_root
/
relative_path
)
.
read_text
(
encoding
=
"utf-8"
)
content
=
(
repo_root
/
relative_path
)
.
read_text
(
encoding
=
"utf-8"
)
header
=
content
[:
700
]
header
=
content
[:
700
]
assert
"Copyright (C) 2026 Stefy Lanza <stefy@nexlab.net>"
in
header
,
relative_path
.
as_posix
()
for
snippet
in
EXPECTED_TASK_2_FRONTEND_HEADER_SNIPPETS
:
assert
"GNU General Public License"
in
header
,
relative_path
.
as_posix
()
assert
snippet
in
header
,
f
"{relative_path.as_posix()}: missing {snippet!r}"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment