Content-Length: 259717 | pFad | http://github.com/rehborn/canary-cd/pull/2

9D Update actions/checkout action to v4 by renovate[bot] · Pull Request #2 · rehborn/canary-cd · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update actions/checkout action to v4 #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Jan 7, 2025

This PR contains the following updates:

Package Type Update Change
actions/checkout action major v3 -> v4

Release Notes

actions/checkout (actions/checkout)

v4

Compare Source


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

github-actions bot commented Jan 7, 2025

Linter

�[7;33m************* Module canary_cd�[0m
canary_cd/init.py:1:0: C0304: �[1mFinal newline missing�[0m (�[1mmissing-final-newline�[0m)
�[7;33m************* Module canary_cd.settings�[0m
canary_cd/settings.py:21:9: C0209: �[1mFormatting a regular string which could be an f-string�[0m (�[1mconsider-using-f-string�[0m)
�[7;33m************* Module canary_cd.database�[0m
canary_cd/database.py:4:0: W0611: �[35mUnused List imported from typing�[0m (�[35munused-import�[0m)
canary_cd/database.py:4:0: W0611: �[35mUnused Optional imported from typing�[0m (�[35munused-import�[0m)
canary_cd/database.py:7:0: W0611: �[35mUnused DateTime imported from sqlmodel�[0m (�[35munused-import�[0m)
canary_cd/database.py:7:0: W0611: �[35mUnused TIMESTAMP imported from sqlmodel�[0m (�[35munused-import�[0m)
canary_cd/database.py:7:0: W0611: �[35mUnused JSON imported from sqlmodel�[0m (�[35munused-import�[0m)
canary_cd/database.py:7:0: W0611: �[35mUnused ARRAY imported from sqlmodel�[0m (�[35munused-import�[0m)
canary_cd/database.py:7:0: W0611: �[35mUnused Column imported from sqlmodel�[0m (�[35munused-import�[0m)
canary_cd/database.py:7:0: W0611: �[35mUnused String imported from sqlmodel�[0m (�[35munused-import�[0m)
canary_cd/database.py:8:0: W0611: �[35mUnused col imported from sqlmodel�[0m (�[35munused-import�[0m)
�[7;33m************* Module canary_cd.main�[0m
canary_cd/main.py:54:4: C0415: �[1mImport outside toplevel (uvicorn)�[0m (�[1mimport-outside-toplevel�[0m)
�[7;33m************* Module canary_cd.models�[0m
canary_cd/models.py:18:0: C0301: �[1mLine too long (124/100)�[0m (�[1mline-too-long�[0m)
canary_cd/models.py:121:0: C0301: �[1mLine too long (104/100)�[0m (�[1mline-too-long�[0m)
canary_cd/models.py:129:0: C0301: �[1mLine too long (104/100)�[0m (�[1mline-too-long�[0m)
canary_cd/models.py:5:0: C0411: �[1mstandard import "typing.Any" should be placed before third party import "fastapi.HTTPException"�[0m (�[1mwrong-import-order�[0m)
canary_cd/models.py:4:0: W0611: �[35mUnused HTTPException imported from fastapi�[0m (�[35munused-import�[0m)
canary_cd/models.py:5:0: W0611: �[35mUnused Any imported from typing�[0m (�[35munused-import�[0m)
canary_cd/models.py:5:0: W0611: �[35mUnused Self imported from typing�[0m (�[35munused-import�[0m)
canary_cd/models.py:5:0: W0611: �[35mUnused Annotated imported from typing�[0m (�[35munused-import�[0m)
canary_cd/models.py:7:0: W0611: �[35mUnused computed_field imported from pydantic�[0m (�[35munused-import�[0m)
canary_cd/models.py:7:0: W0611: �[35mUnused PlainValidator imported from pydantic�[0m (�[35munused-import�[0m)
�[7;33m************* Module canary_cd.routers.project�[0m
canary_cd/routers/project.py:21:0: C0301: �[1mLine too long (103/100)�[0m (�[1mline-too-long�[0m)
canary_cd/routers/project.py:118:0: C0301: �[1mLine too long (109/100)�[0m (�[1mline-too-long�[0m)
canary_cd/routers/project.py:123:0: C0301: �[1mLine too long (104/100)�[0m (�[1mline-too-long�[0m)
canary_cd/routers/project.py:140:0: C0301: �[1mLine too long (104/100)�[0m (�[1mline-too-long�[0m)
canary_cd/routers/project.py:5:0: W0401: �[35mWildcard import canary_cd.dependencies�[0m (�[35mwildcard-import�[0m)
canary_cd/routers/project.py:5:0: W0614: �[35mUnused import(s) oauth2_scheme, OAuth2PasswordBearer, logging, os, sys, BASE_DIR, DATA_DIR, PAGES_CACHE, DYN_CONFIG_CACHE, STATIC_BACKEND_NAME, SQLITE, SALT, env, log_formatter, loglevel, gunicorn_logger, stdout_handler, Path, load_dotenv, logger, generate_salt, uuid, CONFIG_KEYS, AUTH_TYPES, Config, Variable, Page, Redirect, create_db_and_tables, get_session, datetime, timezone, List, Optional, SQLModel, Field, DateTime, TIMESTAMP, JSON, ARRAY, Column, String, Session, create_engine, UniqueConstraint, Relationship, CryptoHelper, FQDN_PATTERN, FQDN_EXAMPLES, NAME_PATTERN, NAME_EXAMPLES, REPO_PATTERN, REPO_EXAMPLES, AUTH_KEY_PATTERN, AUTH_KEY_EXAMPLES, DateBase, GitKeyUpdate, GitKeyCreate, GitKeyDetails, EnvUpdate, EnvBase, EnvDetails, VariableBase, VariableUpdate, VariableDetails, VariableValueDetails, PageBase, PageDetails, RedirectBase, RedirectCreate, RedirectUpdate, RedirectDetails, Any, Self, BaseModel, computed_field, PlainValidator and ConfigDict from wildcard import of canary_cd.dependencies�[0m (�[35munused-wildcard-import�[0m)
�[7;33m************* Module canary_cd.routers.redirect�[0m
canary_cd/routers/redirect.py:24:0: C0301: �[1mLine too long (120/100)�[0m (�[1mline-too-long�[0m)
canary_cd/routers/redirect.py:43:0: C0301: �[1mLine too long (131/100)�[0m (�[1mline-too-long�[0m)
canary_cd/routers/redirect.py:3:0: W0401: �[35mWildcard import canary_cd.dependencies�[0m (�[35mwildcard-import�[0m)
canary_cd/routers/redirect.py:3:0: W0614: �[35mUnused import(s) oauth2_scheme, ch, OAuth2PasswordBearer, logging, sys, BASE_DIR, DATA_DIR, REPO_CACHE, DYN_CONFIG_CACHE, STATIC_BACKEND_NAME, SQLITE, SALT, env, log_formatter, loglevel, gunicorn_logger, stdout_handler, Path, load_dotenv, logger, generate_salt, uuid, CONFIG_KEYS, AUTH_TYPES, now, Config, GitKey, Project, Environment, Variable, create_db_and_tables, get_session, datetime, timezone, List, Optional, SQLModel, Field, DateTime, TIMESTAMP, JSON, ARRAY, Column, String, Session, create_engine, col, UniqueConstraint, Relationship, random_string, CryptoHelper, FQDN_PATTERN, FQDN_EXAMPLES, NAME_PATTERN, NAME_EXAMPLES, REPO_PATTERN, REPO_EXAMPLES, AUTH_KEY_PATTERN, AUTH_KEY_EXAMPLES, DateBase, GitKeyUpdate, GitKeyCreate, GitKeyDetails, ProjectUpdate, ProjectCreate, ProjectDetails, ProjectCreatedDetails, EnvUpdate, EnvBase, EnvDetails, VariableBase, VariableUpdate, VariableDetails, VariableValueDetails, PageBase, PageDetails, RedirectBase, Any, Self, BaseModel, computed_field, PlainValidator and ConfigDict from wildcard import of canary_cd.dependencies�[0m (�[35munused-wildcard-import�[0m)
�[7;33m************* Module canary_cd.routers.config�[0m
canary_cd/routers/config.py:51:0: C0301: �[1mLine too long (103/100)�[0m (�[1mline-too-long�[0m)
canary_cd/routers/config.py:7:0: W0401: �[35mWildcard import canary_cd.dependencies�[0m (�[35mwildcard-import�[0m)
canary_cd/routers/config.py:1:0: W0611: �[35mUnused import shutil�[0m (�[35munused-import�[0m)
canary_cd/routers/config.py:2:0: W0611: �[35mUnused Annotated imported from typing�[0m (�[35munused-import�[0m)
canary_cd/routers/config.py:4:0: W0611: �[35mUnused BackgroundTasks imported from fastapi�[0m (�[35munused-import�[0m)
canary_cd/routers/config.py:4:0: W0611: �[35mUnused Query imported from fastapi�[0m (�[35munused-import�[0m)
canary_cd/routers/config.py:4:0: W0611: �[35mUnused UploadFile imported from fastapi�[0m (�[35munused-import�[0m)
canary_cd/routers/config.py:5:0: W0611: �[35mUnused update imported from sqlalchemy.orm.sync�[0m (�[35munused-import�[0m)
canary_cd/routers/config.py:7:0: W0614: �[35mUnused import(s) oauth2_scheme, ch, OAuth2PasswordBearer, logging, os, sys, BASE_DIR, DATA_DIR, REPO_CACHE, PAGES_CACHE, DYN_CONFIG_CACHE, STATIC_BACKEND_NAME, SQLITE, env, log_formatter, loglevel, gunicorn_logger, stdout_handler, Path, load_dotenv, logger, generate_salt, uuid, AUTH_TYPES, now, GitKey, Project, Environment, Variable, Page, Redirect, create_db_and_tables, get_session, datetime, timezone, List, Optional, SQLModel, Field, DateTime, TIMESTAMP, JSON, ARRAY, Column, String, Session, create_engine, col, UniqueConstraint, Relationship, random_string, FQDN_PATTERN, FQDN_EXAMPLES, NAME_PATTERN, NAME_EXAMPLES, REPO_PATTERN, REPO_EXAMPLES, AUTH_KEY_PATTERN, AUTH_KEY_EXAMPLES, DateBase, GitKeyUpdate, GitKeyCreate, GitKeyDetails, ProjectUpdate, ProjectCreate, ProjectDetails, ProjectCreatedDetails, EnvUpdate, EnvBase, EnvDetails, VariableBase, VariableUpdate, VariableDetails, VariableValueDetails, PageBase, PageDetails, RedirectBase, RedirectCreate, RedirectUpdate, RedirectDetails, Any, Self, BaseModel, computed_field, PlainValidator and ConfigDict from wildcard import of canary_cd.dependencies�[0m (�[35munused-wildcard-import�[0m)
�[7;33m************* Module canary_cd.routers.deploy�[0m
canary_cd/routers/deploy.py:42:0: C0301: �[1mLine too long (113/100)�[0m (�[1mline-too-long�[0m)
canary_cd/routers/deploy.py:6:0: W0401: �[35mWildcard import canary_cd.dependencies�[0m (�[35mwildcard-import�[0m)
canary_cd/routers/deploy.py:3:0: W0611: �[35mUnused Query imported from fastapi�[0m (�[35munused-import�[0m)
canary_cd/routers/deploy.py:6:0: W0614: �[35mUnused import(s) oauth2_scheme, validate_admin, Annotated, Depends, OAuth2PasswordBearer, logging, os, sys, BASE_DIR, DATA_DIR, REPO_CACHE, PAGES_CACHE, DYN_CONFIG_CACHE, STATIC_BACKEND_NAME, SQLITE, SALT, env, log_formatter, loglevel, gunicorn_logger, stdout_handler, load_dotenv, generate_salt, CONFIG_KEYS, AUTH_TYPES, now, Config, GitKey, Variable, Redirect, create_db_and_tables, get_session, datetime, timezone, List, Optional, SQLModel, Field, DateTime, TIMESTAMP, JSON, ARRAY, Column, String, Session, create_engine, col, UniqueConstraint, Relationship, random_string, CryptoHelper, FQDN_PATTERN, FQDN_EXAMPLES, NAME_PATTERN, NAME_EXAMPLES, REPO_PATTERN, REPO_EXAMPLES, AUTH_KEY_PATTERN, AUTH_KEY_EXAMPLES, DateBase, GitKeyUpdate, GitKeyCreate, GitKeyDetails, ProjectUpdate, ProjectCreate, ProjectDetails, ProjectCreatedDetails, EnvUpdate, EnvBase, EnvDetails, VariableBase, VariableUpdate, VariableDetails, VariableValueDetails, PageBase, PageDetails, RedirectBase, RedirectCreate, RedirectUpdate, RedirectDetails, Any, Self, BaseModel, computed_field, PlainValidator and ConfigDict from wildcard import of canary_cd.dependencies�[0m (�[35munused-wildcard-import�[0m)
�[7;33m************* Module canary_cd.routers.git_key�[0m
canary_cd/routers/git_key.py:1:0: C0301: �[1mLine too long (103/100)�[0m (�[1mline-too-long�[0m)
canary_cd/routers/git_key.py:3:0: W0401: �[35mWildcard import canary_cd.dependencies�[0m (�[35mwildcard-import�[0m)
canary_cd/routers/git_key.py:1:0: W0611: �[35mUnused File imported from fastapi�[0m (�[35munused-import�[0m)
canary_cd/routers/git_key.py:1:0: W0611: �[35mUnused BackgroundTasks imported from fastapi�[0m (�[35munused-import�[0m)
canary_cd/routers/git_key.py:1:0: W0611: �[35mUnused UploadFile imported from fastapi�[0m (�[35munused-import�[0m)
canary_cd/routers/git_key.py:3:0: W0614: �[35mUnused import(s) oauth2_scheme, OAuth2PasswordBearer, logging, os, sys, BASE_DIR, DATA_DIR, REPO_CACHE, PAGES_CACHE, DYN_CONFIG_CACHE, STATIC_BACKEND_NAME, SQLITE, SALT, env, log_formatter, loglevel, gunicorn_logger, stdout_handler, Path, load_dotenv, logger, generate_salt, uuid, CONFIG_KEYS, AUTH_TYPES, now, Config, Project, Environment, Variable, Page, Redirect, create_db_and_tables, get_session, datetime, timezone, List, Optional, SQLModel, Field, DateTime, TIMESTAMP, JSON, ARRAY, Column, String, Session, create_engine, col, UniqueConstraint, Relationship, random_string, CryptoHelper, FQDN_PATTERN, FQDN_EXAMPLES, NAME_PATTERN, NAME_EXAMPLES, REPO_PATTERN, REPO_EXAMPLES, AUTH_KEY_PATTERN, AUTH_KEY_EXAMPLES, DateBase, GitKeyUpdate, ProjectUpdate, ProjectCreate, ProjectDetails, ProjectCreatedDetails, EnvUpdate, EnvBase, EnvDetails, VariableBase, VariableUpdate, VariableDetails, VariableValueDetails, PageBase, PageDetails, RedirectBase, RedirectCreate, RedirectUpdate, RedirectDetails, Any, Self, BaseModel, computed_field, PlainValidator and ConfigDict from wildcard import of canary_cd.dependencies�[0m (�[35munused-wildcard-import�[0m)
�[7;33m************* Module canary_cd.routers.env�[0m
canary_cd/routers/env.py:27:0: C0301: �[1mLine too long (106/100)�[0m (�[1mline-too-long�[0m)
canary_cd/routers/env.py:38:0: C0301: �[1mLine too long (121/100)�[0m (�[1mline-too-long�[0m)
canary_cd/routers/env.py:39:0: C0301: �[1mLine too long (115/100)�[0m (�[1mline-too-long�[0m)
canary_cd/routers/env.py:56:0: C0301: �[1mLine too long (113/100)�[0m (�[1mline-too-long�[0m)
canary_cd/routers/env.py:113:0: C0301: �[1mLine too long (104/100)�[0m (�[1mline-too-long�[0m)
canary_cd/routers/env.py:115:0: C0301: �[1mLine too long (122/100)�[0m (�[1mline-too-long�[0m)
canary_cd/routers/env.py:142:0: C0301: �[1mLine too long (107/100)�[0m (�[1mline-too-long�[0m)
canary_cd/routers/env.py:167:0: C0301: �[1mLine too long (107/100)�[0m (�[1mline-too-long�[0m)
canary_cd/routers/env.py:171:0: C0301: �[1mLine too long (104/100)�[0m (�[1mline-too-long�[0m)
canary_cd/routers/env.py:173:0: C0301: �[1mLine too long (102/100)�[0m (�[1mline-too-long�[0m)
canary_cd/routers/env.py:177:0: C0301: �[1mLine too long (101/100)�[0m (�[1mline-too-long�[0m)
canary_cd/routers/env.py:7:0: W0401: �[35mWildcard import canary_cd.dependencies�[0m (�[35mwildcard-import�[0m)
canary_cd/routers/env.py:33:35: W0621: �[35mRedefining name 'env' from outer scope (line 7)�[0m (�[35mredefined-outer-name�[0m)
canary_cd/routers/env.py:4:0: W0611: �[35mUnused BackgroundTasks imported from fastapi�[0m (�[35munused-import�[0m)
canary_cd/routers/env.py:4:0: W0611: �[35mUnused UploadFile imported from fastapi�[0m (�[35munused-import�[0m)
canary_cd/routers/env.py:5:0: W0611: �[35mUnused update imported from sqlalchemy.orm.sync�[0m (�[35munused-import�[0m)
canary_cd/routers/env.py:7:0: W0614: �[35mUnused import(s) oauth2_scheme, OAuth2PasswordBearer, logging, os, sys, BASE_DIR, DATA_DIR, PAGES_CACHE, DYN_CONFIG_CACHE, STATIC_BACKEND_NAME, SQLITE, SALT, env, log_formatter, loglevel, gunicorn_logger, stdout_handler, Path, load_dotenv, logger, generate_salt, uuid, CONFIG_KEYS, AUTH_TYPES, now, Config, GitKey, Page, Redirect, create_db_and_tables, get_session, datetime, timezone, List, Optional, SQLModel, Field, DateTime, TIMESTAMP, JSON, ARRAY, Column, String, Session, create_engine, col, UniqueConstraint, Relationship, random_string, CryptoHelper, FQDN_PATTERN, FQDN_EXAMPLES, NAME_PATTERN, NAME_EXAMPLES, REPO_PATTERN, REPO_EXAMPLES, AUTH_KEY_PATTERN, AUTH_KEY_EXAMPLES, DateBase, GitKeyUpdate, GitKeyCreate, GitKeyDetails, ProjectUpdate, ProjectCreate, ProjectDetails, ProjectCreatedDetails, VariableBase, PageBase, PageDetails, RedirectBase, RedirectCreate, RedirectUpdate, RedirectDetails, Any, Self, BaseModel, computed_field, PlainValidator and ConfigDict from wildcard import of canary_cd.dependencies�[0m (�[35munused-wildcard-import�[0m)
�[7;33m************* Module canary_cd.routers.page�[0m
canary_cd/routers/page.py:28:0: C0301: �[1mLine too long (102/100)�[0m (�[1mline-too-long�[0m)
canary_cd/routers/page.py:8:0: W0401: �[35mWildcard import canary_cd.dependencies�[0m (�[35mwildcard-import�[0m)
canary_cd/routers/page.py:6:0: C0411: �[1mthird party import "fastapi.APIRouter" should be placed before first party import "canary_cd.utils.tasks.extract_page" �[0m (�[1mwrong-import-order�[0m)
canary_cd/routers/page.py:8:0: C0412: �[1mImports from package canary_cd are not grouped�[0m (�[1mungrouped-imports�[0m)
canary_cd/routers/page.py:8:0: W0614: �[35mUnused import(s) oauth2_scheme, OAuth2PasswordBearer, logging, sys, BASE_DIR, DATA_DIR, REPO_CACHE, STATIC_BACKEND_NAME, SQLITE, SALT, env, log_formatter, loglevel, gunicorn_logger, stdout_handler, load_dotenv, generate_salt, CONFIG_KEYS, AUTH_TYPES, now, Config, GitKey, Project, Environment, Variable, create_db_and_tables, get_session, datetime, timezone, List, Optional, SQLModel, Field, DateTime, TIMESTAMP, JSON, ARRAY, Column, String, Session, create_engine, UniqueConstraint, Relationship, CryptoHelper, FQDN_PATTERN, FQDN_EXAMPLES, NAME_PATTERN, NAME_EXAMPLES, REPO_PATTERN, REPO_EXAMPLES, AUTH_KEY_PATTERN, AUTH_KEY_EXAMPLES, DateBase, GitKeyUpdate, GitKeyCreate, GitKeyDetails, ProjectUpdate, ProjectCreate, ProjectDetails, ProjectCreatedDetails, EnvUpdate, EnvBase, EnvDetails, VariableBase, VariableUpdate, VariableDetails, VariableValueDetails, RedirectBase, RedirectCreate, RedirectUpdate, RedirectDetails, Any, Self, BaseModel, computed_field, PlainValidator and ConfigDict from wildcard import of canary_cd.dependencies�[0m (�[35munused-wildcard-import�[0m)
�[7;33m************* Module canary_cd.utils.notify�[0m
canary_cd/utils/notify.py:20:15: R1719: �[1;3;35mThe if expression can be replaced with 'test'�[0m (�[1;3;35msimplifiable-if-expression�[0m)
�[7;33m************* Module canary_cd.utils.crypto�[0m
canary_cd/utils/crypto.py:69:10: E1120: �[1;31mNo value for argument 'ciphertext' in method call�[0m (�[1;31mno-value-for-parameter�[0m)
�[7;33m************* Module canary_cd.utils.tasks�[0m
canary_cd/utils/tasks.py:18:0: C0301: �[1mLine too long (101/100)�[0m (�[1mline-too-long�[0m)
canary_cd/utils/tasks.py:21:0: C0301: �[1mLine too long (128/100)�[0m (�[1mline-too-long�[0m)
canary_cd/utils/tasks.py:59:0: C0301: �[1mLine too long (117/100)�[0m (�[1mline-too-long�[0m)
canary_cd/utils/tasks.py:114:0: C0301: �[1mLine too long (109/100)�[0m (�[1mline-too-long�[0m)
canary_cd/utils/tasks.py:120:0: C0301: �[1mLine too long (101/100)�[0m (�[1mline-too-long�[0m)
canary_cd/utils/tasks.py:164:0: C0301: �[1mLine too long (108/100)�[0m (�[1mline-too-long�[0m)
canary_cd/utils/tasks.py:168:0: C0301: �[1mLine too long (106/100)�[0m (�[1mline-too-long�[0m)
canary_cd/utils/tasks.py:192:0: C0301: �[1mLine too long (102/100)�[0m (�[1mline-too-long�[0m)
canary_cd/utils/tasks.py:196:0: C0301: �[1mLine too long (111/100)�[0m (�[1mline-too-long�[0m)
canary_cd/utils/tasks.py:238:0: C0301: �[1mLine too long (111/100)�[0m (�[1mline-too-long�[0m)
canary_cd/utils/tasks.py:16:0: W0401: �[35mWildcard import canary_cd.database�[0m (�[35mwildcard-import�[0m)
canary_cd/utils/tasks.py:39:18: R1732: �[1;3;35mConsider using 'with' for resource-allocating operations�[0m (�[1;3;35mconsider-using-with�[0m)
canary_cd/utils/tasks.py:40:17: R1732: �[1;3;35mConsider using 'with' for resource-allocating operations�[0m (�[1;3;35mconsider-using-with�[0m)
canary_cd/utils/tasks.py:38:4: W0612: �[35mUnused variable 'stdout'�[0m (�[35munused-variable�[0m)
canary_cd/utils/tasks.py:38:12: W0612: �[35mUnused variable 'stderr'�[0m (�[35munused-variable�[0m)
canary_cd/utils/tasks.py:46:17: W1309: �[35mUsing an f-string that does not have any interpolated variables�[0m (�[35mf-string-without-interpolation�[0m)
canary_cd/utils/tasks.py:34:15: R1732: �[1;3;35mConsider using 'with' for resource-allocating operations�[0m (�[1;3;35mconsider-using-with�[0m)
canary_cd/utils/tasks.py:47:15: R1732: �[1;3;35mConsider using 'with' for resource-allocating operations�[0m (�[1;3;35mconsider-using-with�[0m)
canary_cd/utils/tasks.py:53:4: R1732: �[1;3;35mConsider using 'with' for resource-allocating operations�[0m (�[1;3;35mconsider-using-with�[0m)
canary_cd/utils/tasks.py:55:12: W0612: �[35mUnused variable 'stderr'�[0m (�[35munused-variable�[0m)
canary_cd/utils/tasks.py:59:0: R0914: �[1;3;35mToo many local variables (19/15)�[0m (�[1;3;35mtoo-many-locals�[0m)
canary_cd/utils/tasks.py:106:19: R1732: �[1;3;35mConsider using 'with' for resource-allocating operations�[0m (�[1;3;35mconsider-using-with�[0m)
canary_cd/utils/tasks.py:112:8: R1732: �[1;3;35mConsider using 'with' for resource-allocating operations�[0m (�[1;3;35mconsider-using-with�[0m)
canary_cd/utils/tasks.py:91:24: W0612: �[35mUnused variable 'passwd'�[0m (�[35munused-variable�[0m)
canary_cd/utils/tasks.py:144:0: R0914: �[1;3;35mToo many local variables (18/15)�[0m (�[1;3;35mtoo-many-locals�[0m)
canary_cd/utils/tasks.py:183:0: R0914: �[1;3;35mToo many local variables (16/15)�[0m (�[1;3;35mtoo-many-locals�[0m)
canary_cd/utils/tasks.py:199:29: E1120: �[1;31mNo value for argument 'ciphertext' in method call�[0m (�[1;31mno-value-for-parameter�[0m)
canary_cd/utils/tasks.py:257:7: C0123: �[1mUse isinstance() rather than type() for a typecheck.�[0m (�[1munidiomatic-typecheck�[0m)
canary_cd/utils/tasks.py:255:12: W0612: �[35mUnused variable 'stderr'�[0m (�[35munused-variable�[0m)
canary_cd/utils/tasks.py:315:9: W1514: �[35mUsing open without explicitly specifying an encoding�[0m (�[35munspecified-encoding�[0m)
canary_cd/utils/tasks.py:345:9: W1514: �[35mUsing open without explicitly specifying an encoding�[0m (�[35munspecified-encoding�[0m)
canary_cd/utils/tasks.py:9:0: C0411: �[1mstandard import "asyncio.subprocess.create_subprocess_shell" should be placed before third party import "yaml"�[0m (�[1mwrong-import-order�[0m)
canary_cd/utils/tasks.py:10:0: C0411: �[1mstandard import "pathlib.Path" should be placed before third party import "yaml"�[0m (�[1mwrong-import-order�[0m)
canary_cd/utils/tasks.py:11:0: C0411: �[1mstandard import "time.time" should be placed before third party import "yaml"�[0m (�[1mwrong-import-order�[0m)
canary_cd/utils/tasks.py:11:0: W0611: �[35mUnused time imported from time�[0m (�[35munused-import�[0m)
canary_cd/utils/tasks.py:11:0: W0611: �[35mUnused strftime imported from time�[0m (�[35munused-import�[0m)
canary_cd/utils/tasks.py:14:0: W0611: �[35mUnused import docker�[0m (�[35munused-import�[0m)
canary_cd/utils/tasks.py:16:0: W0614: �[35mUnused import(s) CONFIG_KEYS, AUTH_TYPES, now, GitKey, Project, Variable, Page, Redirect, create_db_and_tables, get_session, datetime, timezone, Annotated, List, Optional, Depends, SQLModel, Field, DateTime, TIMESTAMP, JSON, ARRAY, Column, String, Session, create_engine, col, UniqueConstraint, Relationship, SALT, SQLITE, random_string and CryptoHelper from wildcard import of canary_cd.database�[0m (�[35munused-wildcard-import�[0m)
canary_cd/utils/tasks.py:1:0: R0801: �[1;3;35mSimilar lines in 2 files
==canary_cd.routers.deploy:[30:42]
==canary_cd.routers.project:[123:135]
db_env = db.exec(q).first()
if not db_env:
raise HTTPException(status_code=status.HTTP_404_NOT_FOUND, detail='Environment not found')

background_tasks.add_task(deploy_init, db, db_env.id)

return {"detail": f"deployment started on environment {environment}"}

deploy page

@router.post('/page/{token}')
async def token_deploy_page(token: str, request: Request, db: Database, background_tasks: BackgroundTasks) -> {}:�[0m (�[1;3;35mduplicate-code�[0m)


Your code has been rated at 8.54/10

Coverage

Name Stmts Miss Cover Missing
canary_cd/init.py 1 0 100%
canary_cd/database.py 86 13 85% 36, 151-164, 168-169
canary_cd/dependencies.py 16 5 69% 24-31
canary_cd/main.py 27 9 67% 19-22, 52-55, 59
canary_cd/models.py 68 0 100%
canary_cd/routers/init.py 2 0 100%
canary_cd/routers/config.py 36 24 33% 22-23, 28-45, 50-60
canary_cd/routers/deploy.py 33 22 33% 20-37, 43-57
canary_cd/routers/env.py 106 86 19% 24-28, 34-46, 51-66, 72-94, 104-127, 137-157, 163-181
canary_cd/routers/git_key.py 40 28 30% 18, 23-26, 31-53, 58-65
canary_cd/routers/page.py 55 38 31% 23, 29-49, 55-66, 72-82, 87-97
canary_cd/routers/project.py 93 72 23% 21, 27-30, 36-55, 61-79, 85-98, 104-113, 119-130, 136-148
canary_cd/routers/redirect.py 39 27 31% 19, 25-40, 44-56, 60-70
canary_cd/settings.py 29 4 86% 26-29
canary_cd/utils/init.py 0 0 100%
canary_cd/utils/crypto.py 42 23 45% 14-18, 22, 41, 45-47, 52, 58-74
canary_cd/utils/notify.py 8 6 25% 13-22
canary_cd/utils/tasks.py 192 164 15% 25-29, 33-42, 46-56, 74-141, 145-180, 184-242, 246-265, 269-286, 290-316, 320-346
TOTAL 873 521 40%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/rehborn/canary-cd/pull/2

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy