Skip to content

Instantly share code, notes, and snippets.

View BarisSari's full-sized avatar

Barış Sarı BarisSari

View GitHub Profile
@BarisSari
BarisSari / parallel_apply.ipynb
Created December 28, 2020 10:31 — forked from yifeihuang/parallel_apply.ipynb
Parallelized apply for Pandas
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@BarisSari
BarisSari / first_module_old.py
Last active January 7, 2021 18:43
src/foo/first_module.py
def example():
return 'Hi from foo'
class ExampleFooClass:
def __init__(self, name="example class"):
self.name = name
def print(self):
@BarisSari
BarisSari / firs_module_old.py
Last active January 7, 2021 18:40
src/bar/first_module.py
def example():
return "Hi from bar"
def example_2():
return "Hi again, this is from bar by the way!"
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."
)
def example():
return "Hi from bar"
def example_2():
return "Hi again, this is from bar by the way!"
def example():
return "Hi from foo"
class ExampleFooClass:
def __init__(self, name="example class"):
self.name = name
def print(self):
print(self.name)
# 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:
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(
[flake8]
max-line-length = 100
exclude = .tox,.git,venv
[settings]
multi_line_output = 3
include_trailing_comma = True
force_grid_wrap = 0
use_parentheses = True
ensure_newline_before_comments = True
line_length = 100