Compare commits
2 Commits
b46bc950f7
...
d8073e4eb6
Author | SHA1 | Date | |
---|---|---|---|
d8073e4eb6 | |||
0b39aa7112 |
|
@ -1,6 +1,6 @@
|
||||||
import os
|
import os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import List, Optional
|
from typing import List
|
||||||
|
|
||||||
from pydantic import AliasChoices, BaseModel, Field, model_validator
|
from pydantic import AliasChoices, BaseModel, Field, model_validator
|
||||||
|
|
||||||
|
@ -32,8 +32,8 @@ class Config(BaseModel):
|
||||||
"", validation_alias=AliasChoices("gitea-token", "gitea_token")
|
"", validation_alias=AliasChoices("gitea-token", "gitea_token")
|
||||||
)
|
)
|
||||||
gitea_org: str = Field("", validation_alias=AliasChoices("gitea-org", "gitea_org"))
|
gitea_org: str = Field("", validation_alias=AliasChoices("gitea-org", "gitea_org"))
|
||||||
max_total_score: Optional[int] = Field(
|
max_total_score: int = Field(
|
||||||
None, validation_alias=AliasChoices("max-total-score", "max_total_score")
|
100, validation_alias=AliasChoices("max-total-score", "max_total_score")
|
||||||
)
|
)
|
||||||
force_skip_health_check_on_test: bool = Field(
|
force_skip_health_check_on_test: bool = Field(
|
||||||
False,
|
False,
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
from datetime import datetime, timezone
|
from datetime import datetime, timezone
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Any, Dict, List, Type
|
from typing import Any, Dict, List, Optional, Type
|
||||||
|
|
||||||
from pydantic import (
|
from pydantic import (
|
||||||
AliasChoices,
|
AliasChoices,
|
||||||
|
@ -222,6 +222,6 @@ class Config(BaseModel):
|
||||||
release: Release = Release() # Release configuration
|
release: Release = Release() # Release configuration
|
||||||
stages: List[Stage] = [] # list of stage configurations
|
stages: List[Stage] = [] # list of stage configurations
|
||||||
groups: Groups = Groups()
|
groups: Groups = Groups()
|
||||||
max_total_score: int = Field(
|
max_total_score: Optional[int] = Field(
|
||||||
100, validation_alias=AliasChoices("max-total-score", "max_total_score")
|
None, validation_alias=AliasChoices("max-total-score", "max_total_score")
|
||||||
)
|
)
|
||||||
|
|
|
@ -33,9 +33,9 @@ def get_teapot_post_stage(
|
||||||
repo_conf.grading_repo_name,
|
repo_conf.grading_repo_name,
|
||||||
"--max-total-score",
|
"--max-total-score",
|
||||||
(
|
(
|
||||||
str(repo_conf.max_total_score)
|
str(task_conf.max_total_score)
|
||||||
if repo_conf.max_total_score is not None
|
if task_conf.max_total_score is not None
|
||||||
else str(task_conf.max_total_score)
|
else str(repo_conf.max_total_score)
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
if not repo_conf.submitter_in_issue_title:
|
if not repo_conf.submitter_in_issue_title:
|
||||||
|
|
|
@ -261,6 +261,7 @@
|
||||||
{
|
{
|
||||||
"name": "keyword",
|
"name": "keyword",
|
||||||
"with": {
|
"with": {
|
||||||
|
"score": 0,
|
||||||
"matches": [
|
"matches": [
|
||||||
{
|
{
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
@ -369,6 +370,7 @@
|
||||||
{
|
{
|
||||||
"name": "clangtidy",
|
"name": "clangtidy",
|
||||||
"with": {
|
"with": {
|
||||||
|
"score": 0,
|
||||||
"matches": [
|
"matches": [
|
||||||
{
|
{
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
@ -499,12 +501,14 @@
|
||||||
{
|
{
|
||||||
"name": "keyword",
|
"name": "keyword",
|
||||||
"with": {
|
"with": {
|
||||||
|
"score": 0,
|
||||||
"matches": []
|
"matches": []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "cppcheck",
|
"name": "cppcheck",
|
||||||
"with": {
|
"with": {
|
||||||
|
"score": 0,
|
||||||
"matches": [
|
"matches": [
|
||||||
{
|
{
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
@ -527,6 +531,7 @@
|
||||||
{
|
{
|
||||||
"name": "clangtidy",
|
"name": "clangtidy",
|
||||||
"with": {
|
"with": {
|
||||||
|
"score": 0,
|
||||||
"matches": []
|
"matches": []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -552,6 +557,7 @@
|
||||||
{
|
{
|
||||||
"name": "cpplint",
|
"name": "cpplint",
|
||||||
"with": {
|
"with": {
|
||||||
|
"score": 0,
|
||||||
"matches": []
|
"matches": []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -652,6 +658,7 @@
|
||||||
{
|
{
|
||||||
"name": "cpplint",
|
"name": "cpplint",
|
||||||
"with": {
|
"with": {
|
||||||
|
"score": 0,
|
||||||
"matches": [
|
"matches": [
|
||||||
{
|
{
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|
|
@ -78,6 +78,7 @@
|
||||||
{
|
{
|
||||||
"name": "clangtidy",
|
"name": "clangtidy",
|
||||||
"with": {
|
"with": {
|
||||||
|
"score": 0,
|
||||||
"matches": [
|
"matches": [
|
||||||
{
|
{
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|
|
@ -71,6 +71,7 @@
|
||||||
{
|
{
|
||||||
"name": "cppcheck",
|
"name": "cppcheck",
|
||||||
"with": {
|
"with": {
|
||||||
|
"score": 0,
|
||||||
"matches": [
|
"matches": [
|
||||||
{
|
{
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|
|
@ -70,6 +70,7 @@
|
||||||
{
|
{
|
||||||
"name": "cpplint",
|
"name": "cpplint",
|
||||||
"with": {
|
"with": {
|
||||||
|
"score": 0,
|
||||||
"matches": [
|
"matches": [
|
||||||
{
|
{
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|
|
@ -74,6 +74,7 @@
|
||||||
{
|
{
|
||||||
"name": "elf",
|
"name": "elf",
|
||||||
"with": {
|
"with": {
|
||||||
|
"score": 0,
|
||||||
"matches": [
|
"matches": [
|
||||||
{
|
{
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|
|
@ -73,6 +73,7 @@
|
||||||
{
|
{
|
||||||
"name": "keyword",
|
"name": "keyword",
|
||||||
"with": {
|
"with": {
|
||||||
|
"score": 0,
|
||||||
"matches": [
|
"matches": [
|
||||||
{
|
{
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|
Loading…
Reference in New Issue
Block a user