* Start using ruff instead of black and flake8 for code formatting
* Pull in the updates from ruff
* Update the .yamllint file to stop fighting with prettier
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Change-Id: I7292ac576e5f177dac0fb4691ec316cc73d054e8
- id: prettier
stages: [commit]
- - repo: https://github.com/ambv/black
- rev: 23.3.0
+ - repo: https://github.com/astral-sh/ruff-pre-commit
+ rev: f42857794802b6a77b0e66f08803575aa80d3c8f # frozen: v0.4.7
hooks:
- - id: black
-
- - repo: https://github.com/PyCQA/flake8
- rev: 6.1.0
- hooks:
- - id: flake8
- args: ["--max-line-length=88"]
+ - id: ruff
+ files: ^.+\.py$
+ args: [--fix, --exit-non-zero-on-fix]
+ - id: ruff-format
+ files: ^.+\.py$
- repo: https://github.com/pycqa/bandit
rev: 1.7.5
max-end: 1
line-length:
max: 120
+ comments:
+ # prettier forces 1 space comment separator
+ min-spaces-from-content: 1
+ level: error
Configure sphinx-doc through an YAML file.
"""
+
__author__ = "Linux Foundation Releng"
__summary__ = "Linux Foundation DocsConf"
"""Setup for Docs Configuration."""
+
from setuptools import setup
# http://www.eclipse.org/legal/epl-v10.html
##############################################################################
"""Docs Conf Tests."""
+
import importlib
import os
import pytest