Fix examples and checks

Signed-off-by: magic_rb <richard@brezak.sk>
This commit is contained in:
magic_rb 2024-05-23 10:37:02 +02:00 committed by Mic92
parent 067f3e0fc1
commit d586b9155b
4 changed files with 23 additions and 4 deletions

View file

@ -21,8 +21,11 @@
github = {
# Github user used as a CI identity
user = "mic92-buildbot";
authType.legacy = {
enable = true;
# Github token of the same user
tokenFile = pkgs.writeText "github-token" "ghp_000000000000000000000000000000000000"; # FIXME: replace this with a secret not stored in the nix store
};
# A random secret used to verify incoming webhooks from GitHub
# buildbot-nix will set up a webhook for each project in the organization
webhookSecretFile = pkgs.writeText "webhookSecret" "00000000000000000000"; # FIXME: replace this with a secret not stored in the nix store

View file

@ -16,7 +16,10 @@
'';
admins = [ "Mic92" ];
github = {
authType.legacy = {
enable = true;
tokenFile = pkgs.writeText "github-token" "ghp_000000000000000000000000000000000000";
};
webhookSecretFile = pkgs.writeText "webhookSecret" "00000000000000000000";
oauthSecretFile = pkgs.writeText "oauthSecret" "ffffffffffffffffffffffffffffffffffffffff";
oauthId = "aaaaaaaaaaaaaaaaaaaa";

View file

@ -320,7 +320,7 @@ in
)
''
else
throw "Universe broke"
throw "One of AuthTypeApp or AuthTypeLegacy must be enabled"
}
)"
},

View file

@ -26,6 +26,8 @@ scripts = { buildbot-effects = "hercules_effects.cli:main" }
[tool.setuptools]
packages = [
"buildbot_nix",
"buildbot_nix.github",
"buildbot_nix.github.auth",
"buildbot_effects"
]
@ -82,6 +84,17 @@ ignore = [
# not compatible with twisted logger: https://docs.twisted.org/en/twisted-18.7.0/core/howto/logger.html
"G010", # Logging statement uses `warn` instead of `warning`
# gives falls positives and isn't hard to check munually
"ERA001"
]
[tool.ruff.lint.pep8-naming]
ignore-names = [
"checkConfig",
"baseURL",
"reconfigService",
"sendMessage",
]
[tool.mypy]