Add Black formatting to the Python Spotless checks#770
Open
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #770 +/- ##
===========================================
- Coverage 62.63% 62.63% -0.01%
===========================================
Files 706 706
Lines 42688 42688
Branches 6296 6296
===========================================
- Hits 26739 26738 -1
Misses 14963 14963
- Partials 986 987 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
|
Great PR! |
34337f5 to
5e84d51
Compare
Contributor
|
+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:
#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: ***@***.***>
|
JackieTien97
approved these changes
Apr 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
spotless-maven-pluginin the Python module to runblackduring validationblackto the Python build requirements used by the modulevenvTesting
mvn -DskipTests validateinpython/mvn spotless:applyinpython/