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

fix ruff invocation in linting workflow #828

Merged
merged 3 commits into from
Jul 31, 2024
Merged

fix ruff invocation in linting workflow #828

merged 3 commits into from
Jul 31, 2024

Conversation

egpbos
Copy link
Member

@egpbos egpbos commented Jul 29, 2024

Title says it all. The linting workflow is broken, this fixes it (I hope).

@egpbos
Copy link
Member Author

egpbos commented Jul 29, 2024

Note that the torchtext failures seem unrelated as mentioned in #827. The only workflow that matters is the one that actually does work again now: the linting one :) https://github.com/dianna-ai/dianna/actions/runs/10145802048/job/28052379417?pr=828

It said:

warning: The top-level linter settings are deprecated in favour of their counterparts in the `lint` section. Please update the following options in `pyproject.toml`:
  - 'dummy-variable-rgx' -> 'lint.dummy-variable-rgx'
  - 'fixable' -> 'lint.fixable'
  - 'ignore' -> 'lint.ignore'
  - 'select' -> 'lint.select'
  - 'unfixable' -> 'lint.unfixable'
  - 'isort' -> 'lint.isort'
  - 'per-file-ignores' -> 'lint.per-file-ignores'

Fixed it the same way as in the Python template (NLeSC/python-template@3ce8ff9)
Copy link
Contributor

@stefsmeets stefsmeets left a comment

Choose a reason for hiding this comment

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

Looks good to me! 🚀

pyproject.toml Outdated Show resolved Hide resolved
@egpbos
Copy link
Member Author

egpbos commented Jul 31, 2024

.venv is also in default exclude it seems, so also removed that in the force pushed amended commit.

@egpbos egpbos merged commit 430be09 into main Jul 31, 2024
5 of 16 checks passed
@elboyran elboyran deleted the fix_ruff branch October 2, 2024 13:16
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