Skip to content

add ruff and pre-commit#50

Merged
ioannistsanaktsidis merged 2 commits intoinveniosoftware-contrib:masterfrom
PascalEgn:add-ruff-and-pre-commit
Oct 14, 2025
Merged

add ruff and pre-commit#50
ioannistsanaktsidis merged 2 commits intoinveniosoftware-contrib:masterfrom
PascalEgn:add-ruff-and-pre-commit

Conversation

@PascalEgn
Copy link
Copy Markdown
Contributor

@PascalEgn PascalEgn force-pushed the add-ruff-and-pre-commit branch 2 times, most recently from 63a3b92 to b5fb63a Compare October 14, 2025 08:42
@PascalEgn PascalEgn force-pushed the add-ruff-and-pre-commit branch 2 times, most recently from 1c06016 to b36e1eb Compare October 14, 2025 09:19
Copy link
Copy Markdown
Contributor

@ioannistsanaktsidis ioannistsanaktsidis left a comment

Choose a reason for hiding this comment

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

Some questions/comments. Note PR is dropping unicode (u''), which is the first step of dropping py2 support

line_nb, word_nb
)
)
logger.info("Remote file has %d lines and %d words.".format())
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why remove the line_nb ?

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.

Ironically the line never worked and always outputted Remote file has %d lines and %d words., thats why ruff removed the line_nb variable (as its not used anywhere else...)

But okay the line should be fixed now and works in py2 and py3

@PascalEgn PascalEgn force-pushed the add-ruff-and-pre-commit branch from b36e1eb to 9856f4c Compare October 14, 2025 12:17
Copy link
Copy Markdown
Contributor

@ioannistsanaktsidis ioannistsanaktsidis left a comment

Choose a reason for hiding this comment

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

LGTM

@ioannistsanaktsidis ioannistsanaktsidis merged commit 10f2307 into inveniosoftware-contrib:master Oct 14, 2025
5 checks passed
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.

2 participants