Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
def example(): | |
return 'Hi from foo' | |
class ExampleFooClass: | |
def __init__(self, name="example class"): | |
self.name = name | |
def print(self): |
This file contains 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
def example(): | |
return "Hi from bar" | |
def example_2(): | |
return "Hi again, this is from bar by the way!" |
This file contains 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
from src.bar.first_module import example_2 as bar_example_2, example as bar_example | |
import os | |
import random # An import which we will not use at all | |
from src.foo.first_module import ExampleFooClass as fooClass, example as foo_example | |
def main(): | |
print( | |
"Let's violate maximum line length here. The default line length is 79 for flake8, but this" | |
" one has more than 100 characters." | |
) |
This file contains 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
def example(): | |
return "Hi from bar" | |
def example_2(): | |
return "Hi again, this is from bar by the way!" |
This file contains 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
def example(): | |
return "Hi from foo" | |
class ExampleFooClass: | |
def __init__(self, name="example class"): | |
self.name = name | |
def print(self): | |
print(self.name) |
This file contains 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 workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Python package | |
on: [push] | |
jobs: | |
build: |
This file contains 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
import os | |
from src.bar.first_module import example as bar_example | |
from src.bar.first_module import example_2 as bar_example_2 | |
from src.foo.first_module import ExampleFooClass as fooClass | |
from src.foo.first_module import example as foo_example | |
def main(): | |
print( |
This file contains 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
[flake8] | |
max-line-length = 100 | |
exclude = .tox,.git,venv |
This file contains 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
[settings] | |
multi_line_output = 3 | |
include_trailing_comma = True | |
force_grid_wrap = 0 | |
use_parentheses = True | |
ensure_newline_before_comments = True | |
line_length = 100 |
NewerOlder