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

Ignore common linting rules #242

Merged
merged 1 commit into from
Aug 8, 2024
Merged

Ignore common linting rules #242

merged 1 commit into from
Aug 8, 2024

Conversation

Akasurde
Copy link
Member

@Akasurde Akasurde commented Aug 8, 2024

No description provided.

Signed-off-by: Abhijeet Kasurde <[email protected]>
@Akasurde Akasurde added the enhancement New feature or request label Aug 8, 2024
@Akasurde Akasurde enabled auto-merge (squash) August 8, 2024 17:35
Copy link
Contributor

@benthomasson benthomasson left a comment

Choose a reason for hiding this comment

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

It's fine to ignore these rules for now to unblock the API module work.

@Akasurde Akasurde merged commit e94cca0 into ansible:main Aug 8, 2024
14 checks passed
@Akasurde Akasurde deleted the ignore branch August 8, 2024 18:03
args: [
--fix,
--exit-non-zero-on-fix,
--ignore, E402,
Copy link
Member

Choose a reason for hiding this comment

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

That not the right place to add ignores. You should use inline noqa for this one, or if we want to ignore it for the entire project, it would be inside pyproject.toml ruff config.

- repo: https://github.com/pycqa/pylint
rev: v3.2.6
hooks:
- id: pylint
args:
- --output-format=colorized
- --disable=C0103,C0114,C0115,C0116,R0913,R1735,
- --max-line-length=120
Copy link
Member

Choose a reason for hiding this comment

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

Same as above, not here! Otherwise running pylint outside pre-commit will show same errors (aka... vscode will stil complain!)

@ssbarnea ssbarnea added bug Something isn't working and removed enhancement New feature or request labels Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants