Skip to content

Change UI source formatting to 110 chars - #45312

Merged
jscheffl merged 2 commits into
apache:mainfrom
jscheffl:feature/ui-line-length-110
Jan 1, 2025
Merged

Change UI source formatting to 110 chars#45312
jscheffl merged 2 commits into
apache:mainfrom
jscheffl:feature/ui-line-length-110

Conversation

@jscheffl

@jscheffljscheffl commented Dec 31, 2024

Copy link
Copy Markdown
Contributor

(Note: I know this PR fails in pre-commit checks but wanted to raise it anyway... based on discussion I'd make it clean)

I noticed that in pre-commit we format all text to 110 chars... for Python code and tooling. Also there was a bit of discussion on the devlist about to change it for smaller screens.

NOTE: The big diff is mainly the re-formatting of all UI source. The impact is caused by the one line change in https://github.com/apache/airflow/pull/45312/files#diff-14e4a70ab8ce4057d209267e534689fe0c3f48658095289169b396cd0c37be51R8

Nevertheless I was wondering why we format the (new) UI code to 80 chars? Is there a reason for this? I'd propose (with this PR) to make it common with the test of the codebase.

@boring-cyborgboring-cyborgBot added the area:UI Related to UI/UX. For Frontend Developers. label Dec 31, 2024
@potiukpotiuk added the full tests needed We need to run full set of tests for this PR to merge label Dec 31, 2024
@potiukpotiuk closed this Dec 31, 2024
@potiukpotiuk reopened this Dec 31, 2024
@potiuk

Copy link
Copy Markdown
Member

Applied full tests needed to trigger full static checks

@bbovenzi

bbovenzi commented Dec 31, 2024

Copy link
Copy Markdown
Contributor

That was just the default value for prettier. I'm happy to have it match our rules for python.

@jscheffl
jschefflforce-pushed the feature/ui-line-length-110 branch from 5389526 to aa370c7CompareDecember 31, 2024 16:18
@jscheffl

Copy link
Copy Markdown
ContributorAuthor

No short term objection... as not too much activity LGTM (and beat me up if this was too fast)

@jscheffl
jscheffl merged commit c4989e4 into apache:mainJan 1, 2025
HariGS-DB pushed a commit to HariGS-DB/airflow that referenced this pull request Jan 16, 2025
* Change UI source formatting to 110 chars
* Fix static checks - re-format all UI code from 80 to 110 chars
got686-yandex pushed a commit to got686-yandex/airflow that referenced this pull request Jan 30, 2025
* Change UI source formatting to 110 chars
* Fix static checks - re-format all UI code from 80 to 110 chars
@jscheffl
jscheffl deleted the feature/ui-line-length-110 branch October 5, 2025 07:43
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UIRelated to UI/UX. For Frontend Developers.full tests neededWe need to run full set of tests for this PR to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@jscheffl@potiuk@bbovenzi