chore: Add black pre-commit hook (#6086)

This change adds Black as a pre-commit hook to format Python files.
This commit is contained in:
Ayaz Salikhov
2025-11-26 19:14:17 +00:00
committed by GitHub
parent 2ed4047840
commit f399749ee2
4 changed files with 332 additions and 214 deletions

View File

@@ -1,28 +1,29 @@
from pathlib import Path
from conan import ConanFile
from conan.tools.build import can_run
from conan.tools.cmake import CMake, cmake_layout
from conan import ConanFile
class Example(ConanFile):
name = "example"
license = "ISC"
author = "John Freeman <jfreeman08@gmail.com>, Michael Legleux <mlegleux@ripple.com"
name = 'example'
license = 'ISC'
author = 'John Freeman <jfreeman08@gmail.com>, Michael Legleux <mlegleux@ripple.com'
settings = 'os', 'compiler', 'build_type', 'arch'
settings = "os", "compiler", "build_type", "arch"
requires = ["xrpl/head"]
default_options = {
'xrpl/*:xrpld': False,
"xrpl/*:xrpld": False,
}
generators = ['CMakeDeps', 'CMakeToolchain']
generators = ["CMakeDeps", "CMakeToolchain"]
def set_version(self):
if self.version is None:
self.version = '0.1.0'
self.version = "0.1.0"
def layout(self):
cmake_layout(self)