scripts: cleanup
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
016a9ce34e
commit
91d6f572a5
|
@ -14,7 +14,7 @@ pythonPlatform = "Linux"
|
||||||
|
|
||||||
[tool.black]
|
[tool.black]
|
||||||
line-length = 100
|
line-length = 100
|
||||||
target-version = ['py39']
|
target-version = ['py310']
|
||||||
exclude = 'node_modules'
|
exclude = 'node_modules'
|
||||||
|
|
||||||
[tool.isort]
|
[tool.isort]
|
||||||
|
|
|
@ -3,7 +3,11 @@ from authentik.lib.generators import generate_id
|
||||||
from yaml import safe_dump
|
from yaml import safe_dump
|
||||||
|
|
||||||
with open("local.env.yml", "w") as _config:
|
with open("local.env.yml", "w") as _config:
|
||||||
safe_dump({
|
safe_dump(
|
||||||
|
{
|
||||||
"log_level": "debug",
|
"log_level": "debug",
|
||||||
"secret_key": generate_id(),
|
"secret_key": generate_id(),
|
||||||
}, _config, default_flow_style=False)
|
},
|
||||||
|
_config,
|
||||||
|
default_flow_style=False,
|
||||||
|
)
|
||||||
|
|
|
@ -13,7 +13,10 @@ if os.environ.get(env_pr_branch, "") != "":
|
||||||
should_build = str(os.environ.get("DOCKER_USERNAME", "") != "").lower()
|
should_build = str(os.environ.get("DOCKER_USERNAME", "") != "").lower()
|
||||||
|
|
||||||
print("##[set-output name=branchName]%s" % branch_name)
|
print("##[set-output name=branchName]%s" % branch_name)
|
||||||
print("##[set-output name=branchNameContainer]%s" % branch_name.replace("refs/heads/", "").replace("/", "-"))
|
print(
|
||||||
|
"##[set-output name=branchNameContainer]%s"
|
||||||
|
% branch_name.replace("refs/heads/", "").replace("/", "-")
|
||||||
|
)
|
||||||
print("##[set-output name=timestamp]%s" % int(time()))
|
print("##[set-output name=timestamp]%s" % int(time()))
|
||||||
print("##[set-output name=sha]%s" % os.environ[sha])
|
print("##[set-output name=sha]%s" % os.environ[sha])
|
||||||
print("##[set-output name=shouldBuild]%s" % should_build)
|
print("##[set-output name=shouldBuild]%s" % should_build)
|
||||||
|
|
|
@ -8,14 +8,9 @@ TSCONFIG_ESM = {
|
||||||
"module": "esnext",
|
"module": "esnext",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"outDir": "./dist/esm",
|
"outDir": "./dist/esm",
|
||||||
"typeRoots": [
|
"typeRoots": ["node_modules/@types"],
|
||||||
"node_modules/@types"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"exclude": [
|
"exclude": ["dist", "node_modules"],
|
||||||
"dist",
|
|
||||||
"node_modules"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in New Issue