Skip to content

Commit

Permalink
Cookie updated by NetworkToCode Cookie Drift Manager Tool (#40)
Browse files Browse the repository at this point in the history
* Cookie updated by NetworkToCode Cookie Drift Manager Tool

Template:

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

Cookie:

```
{
    "remote": "https://github.com/nautobot/nautobot-app-dev-example.git",
    "path": "/tmp/tmpli9wmlbw/nautobot-app-dev-example",
    "repository_path": "/tmp/tmpli9wmlbw/nautobot-app-dev-example",
    "dir": "",
    "branch_prefix": "drift-manager",
    "context": {
        "codeowner_github_usernames": "@cmsirbu @snaselj @whitej6",
        "full_name": "Network to Code, LLC",
        "email": "[email protected]",
        "github_org": "nautobot",
        "app_name": "nautobot_dev_example",
        "verbose_name": "Nautobot Dev Example App",
        "app_slug": "nautobot-dev-example",
        "project_slug": "nautobot-app-dev-example",
        "repo_url": "https://github.com/nautobot/nautobot-app-dev-example",
        "base_url": "dev-example",
        "min_nautobot_version": "2.0.0",
        "max_nautobot_version": "2.9999",
        "camel_name": "NautobotDevExample",
        "project_short_description": "Nautobot App to demonstrate how to create a Nautobot App.",
        "model_class_name": "DevExample",
        "open_source_license": "Apache-2.0",
        "docs_base_url": "https://docs.nautobot.com",
        "docs_app_url": "https://docs.nautobot.com/projects/dev-example/en/latest",
        "_template": "https://github.com/nautobot/cookiecutter-nautobot-app.git",
        "_output_dir": "/tmp/tmpli9wmlbw",
        "_repo_dir": "/github/home/.cookiecutters/cookiecutter-nautobot-app/nautobot-app",
        "_checkout": "refs/tags/nautobot-app-v2.3.2"
    },
    "base_branch": "develop",
    "remote_name": "origin",
    "pull_request_strategy": "PullRequestStrategy.CREATE",
    "post_actions": [
        "PostAction.BLACK"
    ],
    "baked_commit_ref": "dd2eb7533cd5fd15adfcc3390a641c9e42716813",
    "draft": false
}
```

CLI Arguments:

```
{
    "cookie_dir": "",
    "input": false,
    "json_filename": "",
    "output_dir": "",
    "push": true,
    "template": "",
    "template_dir": "",
    "template_ref": "refs/tags/nautobot-app-v2.3.2",
    "pull_request": null,
    "post_action": [],
    "disable_post_actions": false,
    "draft": null
}
```

* Ruff, pylint fixes and change fragment.

---------

Co-authored-by: bakebot <[email protected]>
Co-authored-by: Stephen Kiely <[email protected]>
  • Loading branch information
3 people authored Sep 16, 2024
1 parent 8f21e73 commit 5577fcc
Show file tree
Hide file tree
Showing 7 changed files with 290 additions and 255 deletions.
4 changes: 2 additions & 2 deletions .cookiecutter.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
"_drift_manager": {
"template": "https://github.com/nautobot/cookiecutter-nautobot-app.git",
"template_dir": "nautobot-app",
"template_ref": "refs/tags/nautobot-app-v2.3.0",
"template_ref": "refs/tags/nautobot-app-v2.3.2",
"cookie_dir": "",
"branch_prefix": "drift-manager",
"pull_request_strategy": "create",
"post_actions": [
"black"
],
"draft": false,
"baked_commit_ref": "dd2eb7533cd5fd15adfcc3390a641c9e42716813"
"baked_commit_ref": "4e8834985e615dd01507c3c7b10b0cb5ea24b89f"
}
}
}
1 change: 1 addition & 0 deletions changes/40.housekeeping
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Rebaked from the cookie `nautobot-app-v2.3.2`.
2 changes: 1 addition & 1 deletion invoke.example.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
nautobot_dev_example:
nautobot_ver: "2.3.1"
nautobot_ver: "2.0.0"
python_ver: "3.11"
# local: false
# compose_dir: "/full/path/to/nautobot-app-dev-example/development"
Expand Down
2 changes: 1 addition & 1 deletion nautobot_dev_example/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ class Meta:
model = models.DevExample

# add any fields from the model that you would like to filter your searches by using those
fields = ["id", "name", "description"]
fields = "__all__"
6 changes: 1 addition & 5 deletions nautobot_dev_example/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ class Meta:
"""Meta attributes."""

model = models.DevExample
fields = [
"name",
"description",
]

fields = "__all__"

class DevExampleBulkEditForm(TagsBulkEditFormMixin, NautobotBulkEditForm): # pylint: disable=too-many-ancestors
"""DevExample bulk edit form."""
Expand Down
526 changes: 281 additions & 245 deletions poetry.lock

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ no-docstring-rgx = "^(_|test_|Meta$)"

[tool.pylint.messages_control]
disable = """,
line-too-long
line-too-long,
too-many-ancestors,
"""

[tool.pylint.miscellaneous]
Expand All @@ -96,6 +97,7 @@ target-version = "py38"
select = [
"D", # pydocstyle
"F", "E", "W", # flake8
"PL", # pylint
"S", # bandit
"I", # isort
]
Expand Down

0 comments on commit 5577fcc

Please sign in to comment.