jt2594838 commented on PR #770:
URL: https://github.com/apache/tsfile/pull/770#issuecomment-4233552110
+1, maintaining code tidiness is also important.
Best,
Tian Jiang
---- Replied Message ----
| From | ***@***.***> |
| Date | 4/9/2026 11:06 |
| To | ***@***.***> |
| Cc | ***@***.***> |
| Subject | [apache/tsfile] Add Black formatting to the Python Spotless
checks (PR #770) |
Summary
configure spotless-maven-plugin in the Python module to run black during
validation
add black to the Python build requirements used by the module venv
reformat the existing Python sources, examples, and tests to match the
enforced style
Testing
mvn -DskipTests validate in python/
mvn spotless:apply in python/
You can view, comment on, or merge this pull request online at:
https://github.com/apache/tsfile/pull/770
Commit Summary
34337f5 Format Python code with Spotless and Black
File Changes
(35 files)
Mpython/examples/example.py (17)
Mpython/pom.xml (30)
Mpython/requirements.txt (2)
Mpython/setup.py (26)
Mpython/tests/bench_batch_arrow_vs_dataframe.py (27)
Mpython/tests/bench_write_arrow_vs_dataframe.py (135)
Mpython/tests/test_basic.py (27)
Mpython/tests/test_batch_arrow.py (133)
Mpython/tests/test_dataframe.py (261)
Mpython/tests/test_load_tsfile_from_iotdb.py (46)
Mpython/tests/test_query_by_row.py (34)
Mpython/tests/test_reader_metadata.py (15)
Mpython/tests/test_tag_filter.py (35)
Mpython/tests/test_tag_filter_query.py (130)
Mpython/tests/test_to_tsfile.py (211)
Mpython/tests/test_tsfile_dataset.py (50)
Mpython/tests/test_write.py (43)
Mpython/tests/test_write_and_read.py (219)
Mpython/tests/test_write_arrow.py (281)
Mpython/tsfile/__init__.py (15)
Mpython/tsfile/constants.py (38)
Mpython/tsfile/dataset/dataframe.py (124)
Mpython/tsfile/dataset/formatting.py (13)
Mpython/tsfile/dataset/merge.py (27)
Mpython/tsfile/dataset/metadata.py (46)
Mpython/tsfile/dataset/reader.py (85)
Mpython/tsfile/dataset/timeseries.py (26)
Mpython/tsfile/exceptions.py (5)
Mpython/tsfile/field.py (69)
Mpython/tsfile/row_record.py (1)
Mpython/tsfile/schema.py (42)
Mpython/tsfile/tablet.py (53)
Mpython/tsfile/tag_filter.py (16)
Mpython/tsfile/tsfile_table_writer.py (56)
Mpython/tsfile/utils.py (199)
Patch Links:
https://github.com/apache/tsfile/pull/770.patch
https://github.com/apache/tsfile/pull/770.diff
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID:
***@***.***>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]