Skip to content

Commit

Permalink
Merge pull request #11 from donhui/pep8speaks
Browse files Browse the repository at this point in the history
add .pep8speaks.yml
  • Loading branch information
donhui committed Mar 8, 2023
2 parents e3f3fe3 + a1efaf9 commit 7def9d8
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 4 deletions.
28 changes: 28 additions & 0 deletions .pep8speaks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# File : .pep8speaks.yml

scanner:
diff_only: True # If False, the entire file touched by the Pull Request is scanned for errors. If True, only the diff is scanned.
linter: pycodestyle # Other option is flake8

pycodestyle: # Same as scanner.linter value. Other option is flake8
max-line-length: 120 # Default is 79 in PEP 8
ignore: # Errors and warnings to ignore
- W504 # line break after binary operator
- E402 # module level import not at top of file
- E731 # do not assign a lambda expression, use a def
- C406 # Unnecessary list literal - rewrite as a dict literal.
- E741 # ambiguous variable name

no_blank_comment: True # If True, no comment is made on PR without any errors.
descending_issues_order: False # If True, PEP 8 issues in message will be displayed in descending order of line numbers in the file

message: # Customize the comment made by the bot
opened: # Messages when a new PR is submitted
header: "Hello @{name}! Thanks for opening this PR. "
# The keyword {name} is converted into the author's username
footer: "Do see the [Hitchhiker's guide to code style](https://goo.gl/hqbW4r)"
# The messages can be written as they would over GitHub
updated: # Messages when new commits are added to the PR
header: "Hello @{name}! Thanks for updating this PR. "
footer: "" # Why to comment the link to the style guide everytime? :)
no_errors: "There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers: "
2 changes: 0 additions & 2 deletions xray/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,5 +155,3 @@ def export_component_details(self):
:return:
"""
pass


1 change: 0 additions & 1 deletion xray/issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,3 @@ def get_issue_event(self, issue_id: str, api_version='v1'):
url
)
return response

1 change: 0 additions & 1 deletion xray/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,3 @@ def send_ping(self):
url
)
return response

0 comments on commit 7def9d8

Please sign in to comment.