Hi haonan, nice to see that format feature, it will help those pythoners.
Best regards, --------------------- Yuan Tian On Mon, Apr 13, 2026 at 9:53 AM Haonan Hou <[email protected]> wrote: > Hi all, > > I would like to start a discussion about adding Python formatting > with Spotless + Black in the python module. > > Currently, both the Java and C++ modules already use Spotless > for code formatting. I think it may make sense to align the Python > module with the same workflow. > > The current proposal is to use spotless-maven-plugin in > python/pom.xml, use black to format regular Python files (*.py), > and exclude Cython-related files such as *.pyx and *.pxd for now, > since Black does not handle Cython syntax well. > > This should help keep Python code style consistent and reduce > formatting-related review noise. > > I have opened a PR for this here: > https://github.com/apache/tsfile/pull/770 > > Any thoughts on whether we should adopt this? > > Best, > Haonan Hou > >
