Skip to content

Conversation

@jscheffl
Copy link
Contributor

@jscheffl jscheffl commented Dec 31, 2024

(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-cyborg boring-cyborg bot added the area:UI Related to UI/UX. For Frontend Developers. label Dec 31, 2024
@potiuk potiuk added the full tests needed We need to run full set of tests for this PR to merge label Dec 31, 2024
@potiuk potiuk closed this Dec 31, 2024
@potiuk potiuk reopened this Dec 31, 2024
@potiuk
Copy link
Member

potiuk commented Dec 31, 2024

Applied full tests needed to trigger full static checks

@bbovenzi
Copy link
Contributor

bbovenzi commented Dec 31, 2024

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

@jscheffl jscheffl force-pushed the feature/ui-line-length-110 branch from 5389526 to aa370c7 Compare December 31, 2024 16:18
@jscheffl
Copy link
Contributor Author

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:main Jan 1, 2025
51 checks passed
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 free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers. full tests needed We 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