Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

CI: WPS linting instead of Hound #4934

Closed
wants to merge 15 commits into from
Closed

Conversation

antirotor
Copy link
Member

Changelog Description

Because Hound currently used to lint the code on GH ships with really old flake8 support, it fails miserably on any newer Python syntax. This PR is adding WPS linter to GitHub workflows that should step in.

Additional info

WPS linter suit is checking now even docstrings and it seems much more stricter than Hound, so it is a matter of discussion to set its limits.

Testing notes:

Try this configuration file with your PRs and see its feedback. It should post code comments the same way as Hound does.

@antirotor antirotor added the type: enhancement Enhancements to existing functionality label May 4, 2023
@antirotor antirotor self-assigned this May 4, 2023
@ynbot ynbot added the size/XS Denotes a PR changes 0-99 lines, ignoring general files label May 4, 2023
@antirotor antirotor changed the base branch from develop to release/next-minor May 4, 2023 14:07
@antirotor antirotor added the Bump Minor Pull requests that update a dependency file label May 4, 2023
@antirotor antirotor changed the base branch from release/next-minor to develop May 4, 2023 14:09
@Minkiu
Copy link
Contributor

Minkiu commented May 5, 2023

Beyond the scope of this PR, but I was wondering if it would be beneficial to use ruff for linting: https://github.com/charliermarsh/ruff

@antirotor
Copy link
Member Author

Beyond the scope of this PR, but I was wondering if it would be beneficial to use ruff for linting: charliermarsh/ruff

so, the trouble with ruff is that it doesn't support posting review comments on GH as far as I know, the errors show only in process details and that is somewhat lost.

@mkolar
Copy link
Member

mkolar commented May 29, 2023

In that case, how about we get on with it and merge this?

@antirotor antirotor changed the base branch from develop to release/next-minor May 31, 2023 13:50
@antirotor antirotor changed the base branch from release/next-minor to develop May 31, 2023 13:54
@antirotor
Copy link
Member Author

closed in favour of rebased #5072

@antirotor antirotor closed this May 31, 2023
@ynbot ynbot added this to the next-patch milestone May 31, 2023
@antirotor antirotor deleted the enhancement/switch-GH-linter branch June 14, 2023 16:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bump Minor Pull requests that update a dependency file size/XS Denotes a PR changes 0-99 lines, ignoring general files type: enhancement Enhancements to existing functionality
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants