[pre-commit] Add initial pre-commit config
This change adds configuration for the pre-commit tool, follow-up changes will address the remaining issues in a phased approach to make the reviews simpler. This is based on the pre-commit config used in nova with some additional hooks. Follow-up changes will address the FIXME comments related to sphinx-lint and codespell, as well as update tox to enforce these checks in ci. Change-Id: I87681a19f7fa88366c2b0d310c8b3153aa6a137b
This commit is contained in:
@@ -165,6 +165,7 @@ class CinderModelBuilder(base.BaseModelBuilder):
|
||||
- Storage-related knowledge (Cinder)
|
||||
|
||||
"""
|
||||
|
||||
def __init__(self, osc):
|
||||
self.osc = osc
|
||||
self.model = model_root.StorageModelRoot()
|
||||
|
||||
@@ -78,6 +78,7 @@ class BareMetalModelBuilder(base.BaseModelBuilder):
|
||||
|
||||
- Baremetal-related knowledge (Ironic)
|
||||
"""
|
||||
|
||||
def __init__(self, osc):
|
||||
self.osc = osc
|
||||
self.model = model_root.BaremetalModelRoot()
|
||||
|
||||
Reference in New Issue
Block a user