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

Run linter on tests and docs #770

Merged
merged 2 commits into from
Feb 27, 2024

Conversation

nkaretnikov
Copy link
Contributor

@nkaretnikov nkaretnikov commented Feb 25, 2024

Fixes #768.

Description

This pull request changes the linter config to run on tests and docs.

Pull request checklist

  • Did you test this change locally?
  • Did you update the documentation (if required)?
  • Did you add/update relevant tests for this change (if required)?

Additional information

How to test

Copy link

netlify bot commented Feb 25, 2024

Deploy Preview for kaleidoscopic-dango-0cf31d canceled.

Name Link
🔨 Latest commit 34eeb52
🔍 Latest deploy log https://app.netlify.com/sites/kaleidoscopic-dango-0cf31d/deploys/65dba6e1608e5700087fdf11

@nkaretnikov nkaretnikov changed the title Run linter on tests Run linter on tests and docs Feb 25, 2024
@nkaretnikov nkaretnikov marked this pull request as ready for review February 25, 2024 20:50
@nkaretnikov
Copy link
Contributor Author

@dcmcand PTAL. Let me know if you currently don't have cycles, then I'll assign someone else.


- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: "v0.0.289"
hooks:
- id: ruff
exclude: "examples|tests|docs"
Copy link
Collaborator

Choose a reason for hiding this comment

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

It annoys me a bit that we skip examples and the such as it breaks consistency but this might need a deeper look and follow up

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I skipped examples because they have config files, which by design use unbound variables.

@trallard trallard merged commit 94d82dc into conda-incubator:main Feb 27, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done 💪🏾
Development

Successfully merging this pull request may close these issues.

Run the linter against documentation and tests
2 participants