Skip to content

Update requirements - #285

Merged
Jiashuo Li (jiasli) merged 1 commit into
microsoft:devfrom
jiasli:update-requirements
Jul 12, 2024
Merged

Jiashuo Li (jiasli) merged 1 commit into
microsoft:devfrom
jiasli:update-requirements

Conversation

@jiasli

Copy link
Copy Markdown
Contributor

Update requirements to make sure all latest dependencies work with Python 3.12 (#279).

Comment thread knack/help.py
layout['summary'] = layout['summary'].replace('\n', ' ')
if line_len > self.max_line_len:
self.max_line_len = line_len
self.max_line_len = max(line_len, self.max_line_len)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To solve pylint error:

> pylint knack --rcfile=.pylintrc --reports n --disable I0013
************* Module knack.help
knack\help.py:467:16: R1731: Consider using 'max_line_len = max(max_line_len, line_len)' instead of unnecessary if block (consider-using-max-builtin)
knack\help.py:589:16: R1731: Consider using 'max_line_len = max(max_line_len, line_len)' instead of unnecessary if block (consider-using-max-builtin)

@jiasli
Jiashuo Li (jiasli) merged commit 2a7d710 into microsoft:dev Jul 12, 2024
@jiasli
Jiashuo Li (jiasli) deleted the update-requirements branch July 12, 2024 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants