Commit 89d546f
Michael Johns
style(python): satisfy isort + black for PR lint gate
CI surfaced one isort failure (test_sample_bundle.py — `_bundle as
_bundle_mod` had to sort before the multiline `from … import (…)`
because `_` precedes letters in isort's ordering). Once that's fixed,
black also wants to reformat three pre-existing files where short
signatures had been unnecessarily split across multiple lines:
src/databricks/labs/gbx/gridx/bng/functions.py (3 fn signatures)
src/databricks/labs/gbx/rasterx/functions.py (1 fn signature)
test/gridx/test_bng_functions.py (mechanical)
These are pure reformats — no behavior change. Verified locally with
the pinned versions from requirements-ci.in (isort==8.0.1, black==26.3.1,
flake8==7.3.0). All 26 .py files under src/ and test/ now pass all
three gates cleanly.
In test_sample_bundle.py, also replaced the previous pair of mis-
ordered comments above the imports with a single accurate comment;
isort's auto-fix had stacked both comments above the `_bundle_mod`
line, leaving "Public API from package" attached to the wrong import.
Co-authored-by: Isaac1 parent c265d5f commit 89d546f
4 files changed
Lines changed: 19 additions & 43 deletions
File tree
- python/geobrix
- src/databricks/labs/gbx
- gridx/bng
- rasterx
- test
- gridx
- sample
Lines changed: 3 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
164 | | - | |
165 | | - | |
| 163 | + | |
166 | 164 | | |
167 | 165 | | |
168 | 166 | | |
| |||
176 | 174 | | |
177 | 175 | | |
178 | 176 | | |
179 | | - | |
180 | | - | |
181 | | - | |
| 177 | + | |
182 | 178 | | |
183 | 179 | | |
184 | 180 | | |
| |||
192 | 188 | | |
193 | 189 | | |
194 | 190 | | |
195 | | - | |
196 | | - | |
197 | | - | |
| 191 | + | |
198 | 192 | | |
199 | 193 | | |
200 | 194 | | |
| |||
Lines changed: 9 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
412 | 412 | | |
413 | 413 | | |
414 | 414 | | |
415 | | - | |
416 | | - | |
417 | | - | |
| 415 | + | |
418 | 416 | | |
419 | 417 | | |
420 | 418 | | |
| |||
576 | 574 | | |
577 | 575 | | |
578 | 576 | | |
579 | | - | |
580 | | - | |
581 | | - | |
| 577 | + | |
582 | 578 | | |
583 | 579 | | |
584 | 580 | | |
| |||
591 | 587 | | |
592 | 588 | | |
593 | 589 | | |
594 | | - | |
595 | | - | |
596 | | - | |
| 590 | + | |
597 | 591 | | |
598 | 592 | | |
599 | 593 | | |
| |||
606 | 600 | | |
607 | 601 | | |
608 | 602 | | |
609 | | - | |
610 | | - | |
611 | | - | |
| 603 | + | |
612 | 604 | | |
613 | 605 | | |
614 | 606 | | |
| |||
621 | 613 | | |
622 | 614 | | |
623 | 615 | | |
624 | | - | |
625 | | - | |
626 | | - | |
| 616 | + | |
627 | 617 | | |
628 | 618 | | |
629 | 619 | | |
| |||
698 | 688 | | |
699 | 689 | | |
700 | 690 | | |
701 | | - | |
702 | | - | |
703 | | - | |
| 691 | + | |
704 | 692 | | |
705 | 693 | | |
706 | 694 | | |
| |||
792 | 780 | | |
793 | 781 | | |
794 | 782 | | |
795 | | - | |
796 | | - | |
797 | | - | |
| 783 | + | |
798 | 784 | | |
799 | 785 | | |
800 | | - | |
801 | | - | |
802 | | - | |
| 786 | + | |
803 | 787 | | |
804 | 788 | | |
805 | 789 | | |
| |||
889 | 873 | | |
890 | 874 | | |
891 | 875 | | |
892 | | - | |
893 | | - | |
894 | | - | |
| 876 | + | |
895 | 877 | | |
896 | 878 | | |
897 | 879 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
640 | 640 | | |
641 | 641 | | |
642 | 642 | | |
643 | | - | |
644 | | - | |
645 | | - | |
| 643 | + | |
| 644 | + | |
646 | 645 | | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
647 | 649 | | |
648 | 650 | | |
649 | 651 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
| |||
0 commit comments