Skip to content

Commit

Permalink
Merge pull request #239 from mlebreuil/move-netbox-plugin-code
Browse files Browse the repository at this point in the history
Remove the src directory
  • Loading branch information
mlebreuil authored Feb 11, 2025
2 parents d1b6d4f + d41f92c commit 4ae9087
Show file tree
Hide file tree
Showing 74 changed files with 12 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ repos:
hooks:
- id: ruff
name: "Ruff linter"
args: [ "src/netbox_contract/" ]
args: [ "netbox_contract/" ]

2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ The [ruff](https://docs.astral.sh/ruff/) linter is used to enforce code style. A

```
python3 -m pip install ruff
ruff check src/netbox_contract/
ruff check netbox_contract/
```


Expand Down
4 changes: 2 additions & 2 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ recursive-exclude * *.py[co]
recursive-include docs *.rst conf.py Makefile make.bat *.jpg *.png *.gif


graft src/netbox_contract/templates
graft src/netbox_contract/templates/netbox_contract
graft netbox_contract/templates
graft netbox_contract/templates/netbox_contract
21 changes: 0 additions & 21 deletions Makefile

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from dcim.choices import DeviceStatusChoices, SiteStatusChoices
from virtualization.choices import VirtualMachineStatusChoices


class StatusChoices(ChoiceSet):
key = 'Contract.status'

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ class ContractAssignmentListTable(NetBoxTable):
contract__external_partie_object = tables.Column(linkify=True)
tags = columns.TagColumn(url_name='plugins:netbox_contract:contractassignment_list')


class Meta(NetBoxTable.Meta):
model = ContractAssignment
fields = (
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
25 changes: 7 additions & 18 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# See PEP 518 for the spec of this file
# https://www.python.org/dev/peps/pep-0518/

[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "netbox-contract"
version = "2.3.1"
Expand All @@ -20,21 +27,3 @@ classifiers = [
[project.urls]
"Homepage" = "https://github.com/mlebreuil/netbox-contract"
"Bug Tracker" = "https://github.com/mlebreuil/netbox-contract/issues"

[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[tool.setuptools]
zip-safe = false

[tool.setuptools.packages.find]
where = ["src"]
include = ["*"]
namespaces = false

[tool.black]
skip-string-normalization = true

[tool.isort]
profile = "black"

0 comments on commit 4ae9087

Please sign in to comment.