Fix examples and checks
Signed-off-by: magic_rb <richard@brezak.sk>
This commit is contained in:
parent
067f3e0fc1
commit
d586b9155b
|
@ -21,8 +21,11 @@
|
||||||
github = {
|
github = {
|
||||||
# Github user used as a CI identity
|
# Github user used as a CI identity
|
||||||
user = "mic92-buildbot";
|
user = "mic92-buildbot";
|
||||||
# Github token of the same user
|
authType.legacy = {
|
||||||
tokenFile = pkgs.writeText "github-token" "ghp_000000000000000000000000000000000000"; # FIXME: replace this with a secret not stored in the nix store
|
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
|
# A random secret used to verify incoming webhooks from GitHub
|
||||||
# buildbot-nix will set up a webhook for each project in the organization
|
# 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
|
webhookSecretFile = pkgs.writeText "webhookSecret" "00000000000000000000"; # FIXME: replace this with a secret not stored in the nix store
|
||||||
|
|
|
@ -16,7 +16,10 @@
|
||||||
'';
|
'';
|
||||||
admins = [ "Mic92" ];
|
admins = [ "Mic92" ];
|
||||||
github = {
|
github = {
|
||||||
tokenFile = pkgs.writeText "github-token" "ghp_000000000000000000000000000000000000";
|
authType.legacy = {
|
||||||
|
enable = true;
|
||||||
|
tokenFile = pkgs.writeText "github-token" "ghp_000000000000000000000000000000000000";
|
||||||
|
};
|
||||||
webhookSecretFile = pkgs.writeText "webhookSecret" "00000000000000000000";
|
webhookSecretFile = pkgs.writeText "webhookSecret" "00000000000000000000";
|
||||||
oauthSecretFile = pkgs.writeText "oauthSecret" "ffffffffffffffffffffffffffffffffffffffff";
|
oauthSecretFile = pkgs.writeText "oauthSecret" "ffffffffffffffffffffffffffffffffffffffff";
|
||||||
oauthId = "aaaaaaaaaaaaaaaaaaaa";
|
oauthId = "aaaaaaaaaaaaaaaaaaaa";
|
||||||
|
|
|
@ -320,7 +320,7 @@ in
|
||||||
)
|
)
|
||||||
''
|
''
|
||||||
else
|
else
|
||||||
throw "Universe broke"
|
throw "One of AuthTypeApp or AuthTypeLegacy must be enabled"
|
||||||
}
|
}
|
||||||
)"
|
)"
|
||||||
},
|
},
|
||||||
|
|
|
@ -26,6 +26,8 @@ scripts = { buildbot-effects = "hercules_effects.cli:main" }
|
||||||
[tool.setuptools]
|
[tool.setuptools]
|
||||||
packages = [
|
packages = [
|
||||||
"buildbot_nix",
|
"buildbot_nix",
|
||||||
|
"buildbot_nix.github",
|
||||||
|
"buildbot_nix.github.auth",
|
||||||
"buildbot_effects"
|
"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
|
# 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`
|
"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]
|
[tool.mypy]
|
||||||
|
|
Loading…
Reference in a new issue