Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ruff configuration #384

Merged
merged 3 commits into from
Jul 30, 2024
Merged

Update ruff configuration #384

merged 3 commits into from
Jul 30, 2024

Conversation

sjvrijn
Copy link
Contributor

@sjvrijn sjvrijn commented May 3, 2024

Description

Updated pre-commit script to use new explicit ruff check . syntax and ruff section in pyproject.toml to put most settings under tool.ruff.lint as instructed by deprecation warnings

Note

Note: based on #374, so marked as draft until that one is merged

Related issues

Instructions to review the pull request

$ cookiecutter -c 378-ruff-config-update https://github.com/NLeSC/python-template
# Fill with python-template-test info... or just press 'enter' 12 times
$ cd python-template-test
$ git init
$ git config --local core.hooksPath .githooks  # enable pre-commit git hook
$ git add .
$ git commit -m "initial commit"
Script .githooks/pre-commit triggered ...
Starting ruff analysis...
All checks passed!
Pre-commit checks completed successfully.
...
<regular commit summary output>

@sjvrijn sjvrijn changed the title move generated package to src/ layout Update ruff configuration May 5, 2024
@DaniBodor
Copy link
Contributor

So, I stupidly also started updating these before checking if anyone else had.
I made a few additional changes to what you did. I decided to rebase it onto this and create a PR pointing here.

Not sure whether it's better to merge that PR into here (if you agree with changes) and then merge everything into main at once, or whether we first finish this PR and then open a new one with the rest of the changes. What do you think @sjvrijn and @bouweandela?

@bouweandela
Copy link
Member

Let's first finish this one and merge it into main, if @sjvrijn has the time?

@sjvrijn sjvrijn marked this pull request as ready for review July 29, 2024 08:24
@sjvrijn
Copy link
Contributor Author

sjvrijn commented Jul 29, 2024

@DaniBodor @bouweandela Thanks for picking this up. Does anything still need to be changed about this PR? Otherwise I'll just merge this and we can continue in #397

@egpbos egpbos merged commit 3ce8ff9 into main Jul 30, 2024
16 checks passed
@egpbos
Copy link
Member

egpbos commented Jul 30, 2024

Done, thanks for this! I'm going to immediately copy this to DIANNA as well, where I had started a PR fixing the same issues 😅

@egpbos egpbos deleted the 378-ruff-config-update branch July 30, 2024 10:15
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.

ruff config update
4 participants