-
Notifications
You must be signed in to change notification settings - Fork 0
Feature1 #1
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
base: develop
Are you sure you want to change the base?
Feature1 #1
Changes from all commits
5248b01
9a6623d
1262035
0c572ef
3ec5c23
440e44d
c8ced6e
e956bb6
60c7f25
570dd43
a7857ab
cb100ec
09ae47a
dbef7a8
4bc3d91
e5f8b4a
881271e
d490a86
8bccd6f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| [flake8] | ||
| max-line-length = 88 | ||
| select = B,C,E,F,W,T4,B9 | ||
| ignore = E203, E221, E231, E266, E401, E402, E501, E711, E712, E722, E741, F403, F405, F812, F841, W503, W504, W605 | ||
| exclude = jinja2,markupsafe,\.git.*,__pycache__,tests |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| name: Lint # name of the action (displayed in the github interface) | ||
|
|
||
| on: # event list | ||
| pull_request: # on a pull request to each of these branches | ||
| branches: | ||
| - develop | ||
|
|
||
| jobs: | ||
| flake8_py3: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Code Checkout | ||
| uses: actions/checkout@v2 | ||
| - name: Setup Python | ||
| uses: actions/setup-python@v2 | ||
| with: | ||
| python-version: '3.8' | ||
| architecture: 'x64' | ||
| - name: Install dependencies | ||
| run: pip install lintly==0.6.0 flake8==3.9.2 black==21.9b0 | ||
| - name: Install problem dependencies | ||
| run: pip install MarkupSafe==2.0.1 Jinja2==2.11.3 | ||
| - name: Lint with flake8 | ||
| run: flake8 | lintly --format=flake8 | ||
| env: | ||
| LINTLY_API_KEY: ${{ secrets.GITHUB_TOKEN }} | ||
| - name: Lint with black | ||
| run: black . --check 2>&1 >/dev/null | lintly --format=black | ||
| env: | ||
| LINTLY_API_KEY: ${{ secrets.GITHUB_TOKEN }} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| name: Lint # name of the action (displayed in the github interface) | ||
|
|
||
| on: # event list | ||
| pull_request: # on a pull request to each of these branches | ||
| branches: | ||
| - develop | ||
| paths: | ||
| - '*.py' | ||
|
|
||
| jobs: | ||
| flake8_py3: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Setup Python | ||
| uses: actions/setup-python@v2 | ||
| with: | ||
| python-version: '3.8' | ||
| architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified | ||
| - name: Code Checkout | ||
| uses: actions/checkout@v2 | ||
| - name: Install flake8 | ||
| run: pip install flake8 | ||
| - name: Run flake8 | ||
| uses: suo/flake8-github-action@releases/v1 | ||
| with: | ||
| checkName: 'flake8_py3' | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| class Main: | ||
| const1 = 1 | ||
| CONST2 = 2 | ||
|
|
||
| def __init__( self ): | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. E201: whitespace after '(' |
||
| print( "In Constructor") | ||
|
|
||
| def do_something(self): | ||
| print("Let's do something!" ) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. E202: whitespace before ')' |
||
| if self.CONST2: | ||
| print("CONST2 is set") | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. E117: over-indented There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. E111: indentation is not a multiple of 4 |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| flake8==4.0.1 | ||
| Jinja2==2.11.3 | ||
| MarkupSafe==2.0.1 | ||
| mccabe==0.6.1 | ||
| pycodestyle==2.8.0 | ||
| pyflakes==2.4.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
E202: whitespace before ')'