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

Rebake from latest cookie, fix mark_safe usage #214

Merged
merged 6 commits into from
Jul 2, 2024

Conversation

glennmatthews
Copy link
Contributor

Rebake from latest cookie. Updated ruff configs correctly warned about a bunch of places we were unsafely using mark_safe, which I've updated in this PR to use format_html instead where appropriate.

Lots of other ruff warnings about raw SQL calls and potential SQL injection which are currently beyond the scope of this PR to address, but I've tried to make sure they at least have TODO comments for later revisitation.

Template:

```
{
    "template": "https://github.com/nautobot/cookiecutter-nautobot-app.git",
    "dir": "nautobot-app",
    "ref": "develop",
    "path": null
}
```

Cookie:

```
{
    "remote": "[email protected]:nautobot/nautobot-app-version-control.git",
    "path": "/Users/glennmatthews/Documents/git-stuff/nautobot-app-version-control",
    "repository_path": "/Users/glennmatthews/Documents/git-stuff/nautobot-app-version-control",
    "dir": "",
    "branch_prefix": "drift-manager",
    "context": {
        "codeowner_github_usernames": "@smith-ntc",
        "full_name": "Network to Code, LLC",
        "email": "[email protected]",
        "github_org": "nautobot",
        "app_name": "nautobot_version_control",
        "verbose_name": "Nautobot Version Control",
        "app_slug": "nautobot-version-control",
        "project_slug": "nautobot-app-version-control",
        "repo_url": "https://github.com/nautobot/nautobot-app-version-control",
        "base_url": "version-control",
        "min_nautobot_version": "2.0.3",
        "max_nautobot_version": "2.9999",
        "camel_name": "NautobotVersionControl",
        "project_short_description": "Nautobot Version Control with Dolt",
        "model_class_name": "None",
        "open_source_license": "Apache-2.0",
        "docs_base_url": "https://docs.nautobot.com",
        "docs_app_url": "https://docs.nautobot.com/projects/version-control/en/latest",
        "_template": "https://github.com/nautobot/cookiecutter-nautobot-app.git",
        "_output_dir": "/Users/glennmatthews/Documents/git-stuff",
        "_repo_dir": "/Users/glennmatthews/.cookiecutters/cookiecutter-nautobot-app/nautobot-app",
        "_checkout": "develop"
    },
    "base_branch": "develop",
    "remote_name": "origin",
    "pull_request_strategy": "PullRequestStrategy.CREATE",
    "post_actions": [
        "PostAction.BLACK"
    ],
    "baked_commit_ref": "e400b7359a805402f1ec49a9555424e6bfce3856",
    "draft": true
}
```

CLI Arguments:

```
{
    "cookie_dir": "",
    "input": false,
    "json_filename": "",
    "output_dir": "",
    "push": false,
    "template": "",
    "template_dir": "",
    "template_ref": "",
    "pull_request": null,
    "post_action": [],
    "disable_post_actions": false,
    "draft": null
}
```
Copy link

@smk4664 smk4664 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for all of these changes! This looks great to me!

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This made me chuckle.

@glennmatthews glennmatthews merged commit f6733f6 into develop Jul 2, 2024
14 checks passed
@glennmatthews glennmatthews deleted the drift-manager/pr branch July 2, 2024 14:39
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.

3 participants