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
"""Finds communities in the given graph using clique percolation.""" | |
def _add_edge_to_adjancy_list(adjancy_list, node1, node2): | |
if node1 in adjancy_list: | |
adjancy_list[node1].add(node2) | |
else: | |
adjancy_list[node1] = set([node2]) | |
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
"""Setup for the chocobo package.""" | |
import setuptools | |
with open('README.md') as f: | |
README = f.read() | |
setuptools.setup( | |
author="Shay Palachy", |
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 foo(a, quiet=False): | |
_print = (lambda x: x) if quiet else print | |
b = a * 5 | |
_print("Warming up warp engines. This will not print if quiet is set to True.") | |
return b + 3.14 |
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
pipenv | |
versioneer | |
pytest | |
coverage | |
pytest-cov | |
collective.checkdocs | |
pygments | |
wheel | |
twine |
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
[pytest] | |
testpaths = | |
tests | |
skift | |
norecursedirs=dist build .tox scripts | |
addopts = | |
--doctest-modules | |
--cov=skift | |
-r a | |
-v |
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
language: python | |
matrix: | |
include: | |
- python: 2.7 | |
PARALLELIZE=false | |
- python: 3.5 | |
PARALLELIZE=false | |
- python: 3.5 | |
PARALLELIZE=true |
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
language: python | |
python: | |
- 2.7 | |
- 3.5 | |
env: | |
- PARALLELIZE=true | |
- PARALLELIZE=false |
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
language: python | |
python: | |
- 2.7 | |
- 3.5 | |
- 3.6 | |
before_install: | |
- python --version | |
- pip install -U pip | |
- pip install -U pytest | |
- pip install codecov |
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
matrix: | |
include: | |
- name: "Generic Python 3.5 on macOS" | |
os: osx | |
language: shell # 'language: python' is an error on Travis CI macOS | |
python: 3.5 |
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
matrix: | |
include: | |
- name: "Python 3.6.5 on macOS 10.13" | |
os: osx | |
osx_image: xcode9.4 # Python 3.6.5 running on macOS 10.13 | |
language: shell # 'language: python' is an error on Travis CI macOS | |
before_install: | |
- python3 --version | |
- pip3 install -U pip | |
- pip3 install -U pytest |
OlderNewer