-
-
Notifications
You must be signed in to change notification settings - Fork 581
chore(checks): Init wemake-python-styleguide configuration #905
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
24dacab
Disable most obvious parts a.k.a. "init configuration"
MaxymVlasov 2a1c406
Add ignores for deprecated hooks
MaxymVlasov 6d8595c
Add wemake-python-styleguide pre-commit hook
MaxymVlasov af53405
Init config from chroot project. W/o fFIXME and useless for us options
MaxymVlasov 33770fd
fix WPS111
MaxymVlasov 2d87f5b
Ignore known issues which will not be fixed
MaxymVlasov 4932523
Ignore WPS115
MaxymVlasov e01faa2
Ignore WPS410
MaxymVlasov 17fdb38
Fix WPS407 — Forbid mutable constants on a module level.
MaxymVlasov 7d54fe4
Ignore 4 WPS324 violations
MaxymVlasov 0441b68
Fix fixable part of WPS324
MaxymVlasov 6c2c7af
Apply review suggestions
MaxymVlasov 2fc9c37
Apply review suggestions
MaxymVlasov 2c22b6f
Update .flake8
MaxymVlasov 3248618
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 6687da9
Apply suggestions from code review
MaxymVlasov 6eb082a
Not try to fix WPS111 in a way that does not improve code
MaxymVlasov ad6a5c0
Merge branch 'master' into add_wemake-python-styleguide
MaxymVlasov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| # | ||
| # Configuration of wemake-python-styleguide | ||
| # Docs: https://wemake-python-styleguide.readthedocs.io | ||
| # | ||
| [flake8] | ||
|
|
||
| # Ruff set to 79, but we have some noqa comments which are a bit longer, and wemake does not forgive that | ||
| max-line-length = 88 | ||
| # Suppress WPS410 warning | ||
| allowed-module-metadata=__all__ | ||
|
|
||
| ignore = | ||
| # Allow relative imports to the current folder. | ||
| WPS300, | ||
|
|
||
|
|
||
| per-file-ignores = | ||
| # Tests contain similar string literals | ||
| tests/pytest/_cli_test.py: WPS226 | ||
| # We will not spend time on fixing coplexity in depprecated hook | ||
| src/pre_commit_terraform/terraform_docs_replace.py: WPS232 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.