-
Notifications
You must be signed in to change notification settings - Fork 28
Pre-Release: add precommit-hook configuration for linters, doc styles #68
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 5 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
869f1ee
add precommit-hook configuration for linters
BurnzZ 753c876
update flake8 config
BurnzZ 58c9036
run black
BurnzZ e4a1cfb
fix flake8 errors
BurnzZ 1939a00
add .git-blame-ignore-revs
BurnzZ 705916b
remove '' prefix in the docs' anchor tags
BurnzZ 877307e
remove flake8 commit hash in .git-blame-ignore-revs
BurnzZ 1548c1d
update black config to use line length of 88 instead of 120
BurnzZ 7249a13
run black with line length of 88 instead of 120
BurnzZ 5584951
update .git-blame-ignore-revs
BurnzZ 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| [flake8] | ||
| ignore = | ||
| # Refers to the max-line length. Let's suppress the error and simply | ||
| # let black take care on how it wants to format the lines. | ||
| E501, | ||
|
|
||
| # Refers to "line break before binary operator". | ||
| # Similar to above, let black take care of the formatting. | ||
| W503, | ||
|
|
||
| # Refers to "necessary dict call - rewrite as a literal". | ||
| C408, | ||
|
|
||
| # To be addressed: | ||
| D100, # Missing docstring in public module | ||
| D101, # Missing docstring in public class | ||
| D102, # Missing docstring in public method | ||
| D103, # Missing docstring in public function | ||
| D104, # Missing docstring in public package | ||
| D105, # Missing docstring in magic method | ||
| D107, # Missing docstring in __init__ | ||
| D200, # One-line docstring should fit on one line with quotes | ||
| D202, # No blank lines allowed after function docstring | ||
| D205, # 1 blank line required between summary line and description | ||
| D209, # Multi-line docstring closing quotes should be on a separate line | ||
| D400, # First line should end with a period | ||
| D401, # First line should be in imperative mood | ||
| D402 # First line should not be the function's "signature" | ||
|
|
||
| per-file-ignores = | ||
| # F401: Ignore "imported but unused" errors in __init__ files, as those | ||
| # imports are there to expose submodule functions so they can be imported | ||
| # directly from that module | ||
| # F403: Ignore * imports in these files | ||
| scrapy_poet/__init__.py:F401,F403 | ||
| scrapy_poet/page_inputs/__init__.py:F401,F403 |
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,5 @@ | ||
| # Contains commits to be ignored due to linting | ||
|
|
||
| # https://github.com/scrapinghub/scrapy-poet/pull/68 | ||
| 58c903617911b3209ad68bfefe3fa1a86be629f4 | ||
| e4a1cfb7d1e7e55de39039ee3925be073ae6d412 | ||
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,22 @@ | ||
| repos: | ||
| - hooks: | ||
| - id: black | ||
| language_version: python3 | ||
| repo: https://github.com/ambv/black | ||
| rev: 22.3.0 | ||
| - hooks: | ||
| - id: isort | ||
| language_version: python3 | ||
| repo: https://github.com/PyCQA/isort | ||
| rev: 5.10.1 | ||
| - hooks: | ||
| - id: flake8 | ||
| language_version: python3 | ||
| additional_dependencies: | ||
| - flake8-bugbear | ||
| - flake8-comprehensions | ||
| - flake8-debugger | ||
| - flake8-docstrings | ||
| - flake8-string-format | ||
| repo: https://github.com/pycqa/flake8 | ||
| rev: 4.0.1 |
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
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
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
Oops, something went wrong.
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.