mirror of
https://github.com/netbox-community/devicetype-library.git
synced 2024-11-25 01:44:08 +01:00
282559fa45
* Adding --all switch to the pre-commit check * Adding test code to verify component positions are not the same for similar modules * Adding code to validate component names and duplicate positions. This was discovered in issue #1584 * Reverting accidental change to pre-commit-config.yaml * Update SDU-5000.yml Reverting testing change * Update device_types.py Removed un-needed import
38 lines
747 B
Python
38 lines
747 B
Python
import os
|
|
|
|
SCHEMAS = (
|
|
('device-types', 'devicetype.json'),
|
|
('module-types', 'moduletype.json'),
|
|
)
|
|
|
|
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" |