This commit provides some basic docs on how the repo works. These shoudl be moved to contibutor docs later once we have a devstack plugin and a working install procedure. For now they are stored in the README of discoverablity. This change also provide a minimal settings.py to be used in conjunction with a new ``tox -e runserver`` command. this will run a local development instance of horizon using in memory caching an signed cookies for session management. in the future we may evolve this to run without all of horizon or modify it based on how the plugin develops once we have a working devstack jobs. An example local.conf is also provided which deploys nova, neutron, placement, keystone, glance an horizon. addtionally promethus, ceilometer and sg-core are deployed to provide metrics. Change-Id: If9f38d88efccd29a63dd2aba4edd56f5f9fa1933
73 lines
1.5 KiB
YAML
73 lines
1.5 KiB
YAML
exclude: '^docs/conf.py'
|
|
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v5.0.0
|
|
hooks:
|
|
# whitespace
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: mixed-line-ending
|
|
args: ['--fix=lf']
|
|
exclude: '.*\.(svg)$'
|
|
- id: check-byte-order-marker
|
|
# file format and permissions
|
|
- id: check-ast
|
|
- id: check-json
|
|
- id: check-xml
|
|
- id: check-yaml
|
|
files: .*\.(yaml|yml)$
|
|
- id: check-executables-have-shebangs
|
|
- id: check-shebang-scripts-are-executable
|
|
# git
|
|
- id: check-added-large-files
|
|
- id: check-case-conflict
|
|
- id: detect-private-key
|
|
# python
|
|
- id: debug-statements
|
|
- id: check-docstring-first
|
|
- id: requirements-txt-fixer
|
|
|
|
|
|
- repo: https://github.com/Lucas-C/pre-commit-hooks
|
|
rev: v1.5.5
|
|
hooks:
|
|
- id: remove-tabs
|
|
exclude: '.*\.(svg)$'
|
|
|
|
- repo: https://github.com/PyCQA/bandit
|
|
rev: 1.8.3
|
|
hooks:
|
|
- id: bandit
|
|
|
|
- repo: https://opendev.org/openstack/bashate
|
|
rev: 2.1.1
|
|
hooks:
|
|
- id: bashate
|
|
args: ["--max-line-length", "150"]
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
# Ruff version.
|
|
rev: v0.11.2
|
|
hooks:
|
|
# Run the linter.
|
|
- id: ruff
|
|
types_or: [ python, pyi ]
|
|
args: [ --fix ]
|
|
# Run the formatter.
|
|
- id: ruff-format
|
|
types_or: [ python, pyi ]
|
|
|
|
- repo: https://github.com/PyCQA/doc8
|
|
rev: v1.1.2
|
|
hooks:
|
|
- id: doc8
|
|
|
|
- repo: https://opendev.org/openstack/hacking
|
|
rev: 7.0.0
|
|
hooks:
|
|
- id: hacking
|
|
additional_dependencies:
|
|
- flake8-import-order~=0.18.2
|
|
exclude: '^(doc|releasenotes|tools)/.*$'
|