Skip to content

Commit ca37d30

Browse files
authored
Merge pull request #13 from mgxd/enh/p8s
tst: pep8speaks
2 parents 73bd21c + 085faa2 commit ca37d30

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,4 @@ secrets.py
7878
local_settings.py
7979

8080
*.swp
81+
.vscode/

.pep8speaks.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
scanner:
2+
diff_only: True # If False, the entire file touched by the Pull Request is scanned for errors. If True, only the diff is scanned.
3+
linter: pycodestyle # Other option is flake8
4+
5+
pycodestyle: # Same as scanner.linter value. Other option is flake8
6+
max-line-length: 88 # Follow black's line length
7+
ignore: # Errors and warnings to ignore
8+
- E402 # module level import not at top of file
9+
10+
no_blank_comment: False # If True, no comment is made on PR without any errors.
11+
descending_issues_order: False # If True, PEP 8 issues in message will be displayed in descending order of line numbers in the file
12+
13+
message: # Customize the comment made by the bot
14+
opened: # Messages when a new PR is submitted
15+
header: "Hello @{name}! Thanks for opening this PR. "
16+
# The keyword {name} is converted into the author's username
17+
footer: "Do see the [Hitchhiker's guide to code style](https://goo.gl/hqbW4r)"
18+
# The messages can be written as they would over GitHub
19+
updated: # Messages when new commits are added to the PR
20+
header: "Hello @{name}! Thanks for updating this PR. "
21+
footer: "" # Why to comment the link to the style guide everytime? :)
22+
no_errors: "There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers: "

0 commit comments

Comments
 (0)