Files
.devcontainer
.github
device-types
elevation-images
module-images
module-types
schema
scripts
tests
definitions_test.py
device_types.py
generate-slug-list.py
known-modules.pickle
known-slugs.pickle
pickle_operations.py
test_configuration.py
yaml_loader.py
.editorconfig
.gitignore
.gitmodules
.markdownlint.yaml
.pre-commit-config.yaml
.pre-commit-hooks-config.yaml
.pre-commit-yamlfmt-config.yaml
.yamllint.yaml
CONTRIBUTING.md
LICENSE.txt
README.md
requirements.txt
devicetype-library/tests/test_configuration.py

40 lines
792 B
Python

import os
SCHEMAS = (
('device-types', 'devicetype.json'),
('module-types', 'moduletype.json'),
)
SCHEMAS_BASEPATH = f"{os.getcwd()}/schema/"
IMAGE_FILETYPES = (
'bmp', 'gif', 'pjp', 'jpg', 'pjpeg', 'jpeg', 'jfif', 'png', 'tif', 'tiff', 'webp'
)
COMPONENT_TYPES = (
'console-ports',
'console-server-ports',
'power-ports',
'power-outlets',
'interfaces',
'front-ports',
'rear-ports',
'device-bays',
'module-bays',
)
PRECOMMIT_ALL_SWITCHES = [
'-a',
'--all-files',
'--all'
]
ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname( __file__ ), '..'))
KNOWN_SLUGS = set()
KNOWN_MODULES = set()
USE_LOCAL_KNOWN_SLUGS = False
USE_UPSTREAM_DIFF = True
NETBOX_DT_LIBRARY_URL = "https://github.com/netbox-community/devicetype-library.git"