-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
134 changed files
with
1,403 additions
and
1,074 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Python CircleCI 2.0 configuration file | ||
# | ||
# Check https://circleci.com/docs/2.0/language-python/ for more details | ||
# | ||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/python:3.6.1 | ||
|
||
working_directory: ~/repo | ||
|
||
steps: | ||
- checkout | ||
|
||
# Download and cache dependencies | ||
- restore_cache: | ||
keys: | ||
- v1-dependencies-{{ checksum "requirements.txt" }} | ||
# fallback to using the latest cache if no exact match is found | ||
- v1-dependencies- | ||
|
||
- run: | ||
name: install dependencies | ||
command: | | ||
python3 -m venv venv | ||
. venv/bin/activate | ||
pip install -r requirements.txt -r requirements_dev.txt | ||
- save_cache: | ||
paths: | ||
- ./venv | ||
key: v1-dependencies-{{ checksum "requirements.txt" }} | ||
|
||
- run: | ||
name: run linter | ||
command: | | ||
. venv/bin/activate | ||
make lint | ||
- run: | ||
name: check code format | ||
command: | | ||
. venv/bin/activate | ||
make check-formatting | ||
- run: | ||
name: run tests | ||
command: | | ||
. venv/bin/activate | ||
make test | ||
- store_artifacts: | ||
path: test-reports | ||
destination: test-reports | ||
|
||
- run: | ||
name: upload coverage report | ||
command: | | ||
. venv/bin/activate | ||
codecov -t=$CODECOV_TOKEN |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[flake8] | ||
ignore = | ||
D203, | ||
E501 | ||
exclude = | ||
.git, | ||
__pycache__, | ||
docs/source/conf.py, | ||
old, | ||
build, | ||
dist | ||
max-complexity = 10 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,126 @@ | ||
# test file | ||
test.py | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# Packages | ||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
pip-wheel-metadata/ | ||
share/python-wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
*.eggs | ||
*.egg-info | ||
*.cache | ||
MANIFEST | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.nox/ | ||
.coverage | ||
.tox | ||
nosetests.xml | ||
.coverage.* | ||
.cache | ||
eggs | ||
|
||
# pycache | ||
__pychache__ | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
*.pyc | ||
|
||
# docs | ||
docs/_build | ||
docs/_static | ||
docs/_templates | ||
docs/reference/generated | ||
docs/reference/classes/generated | ||
docs/reference/functions/generated | ||
docs/reference/invariants/generated | ||
|
||
# dist and build | ||
/dist | ||
/build | ||
|
||
# scratch folder | ||
/scratch | ||
|
||
# virtual environments | ||
/venv | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
db.sqlite3 | ||
db.sqlite3-journal | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# IPython | ||
profile_default/ | ||
ipython_config.py | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# pipenv | ||
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. | ||
# However, in case of collaboration, if having platform-specific dependencies or dependencies | ||
# having no cross-platform support, pipenv may install dependencies that don't work, or not | ||
# install all needed dependencies. | ||
#Pipfile.lock | ||
|
||
# celery beat schedule file | ||
celerybeat-schedule | ||
|
||
# SageMath parsed files | ||
*.sage.py | ||
|
||
# Environments | ||
.env | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
.spyproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# mkdocs documentation | ||
/site | ||
|
||
# mypy | ||
.mypy_cache/ | ||
.dmypy.json | ||
dmypy.json | ||
|
||
# Pyre type checker | ||
.pyre/ | ||
|
||
.vscode |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
lint: | ||
flake8 grinpy/ | ||
|
||
check-formatting: | ||
black --check grinpy/ | ||
|
||
format: | ||
black grinpy/ | ||
|
||
test: | ||
pytest -vv --cov=grinpy/ . |
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
6 changes: 6 additions & 0 deletions
6
docs/reference/classes/generated/grinpy.HavelHakimi.__init__.rst
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
grinpy.HavelHakimi.\_\_init\_\_ | ||
=============================== | ||
|
||
.. currentmodule:: grinpy | ||
|
||
.. automethod:: HavelHakimi.__init__ |
6 changes: 6 additions & 0 deletions
6
docs/reference/classes/generated/grinpy.HavelHakimi.depth.rst
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
grinpy.HavelHakimi.depth | ||
======================== | ||
|
||
.. currentmodule:: grinpy | ||
|
||
.. automethod:: HavelHakimi.depth |
6 changes: 6 additions & 0 deletions
6
docs/reference/classes/generated/grinpy.HavelHakimi.get_elimination_sequence.rst
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
grinpy.HavelHakimi.get\_elimination\_sequence | ||
============================================= | ||
|
||
.. currentmodule:: grinpy | ||
|
||
.. automethod:: HavelHakimi.get_elimination_sequence |
6 changes: 6 additions & 0 deletions
6
docs/reference/classes/generated/grinpy.HavelHakimi.get_initial_sequence.rst
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
grinpy.HavelHakimi.get\_initial\_sequence | ||
========================================= | ||
|
||
.. currentmodule:: grinpy | ||
|
||
.. automethod:: HavelHakimi.get_initial_sequence |
6 changes: 6 additions & 0 deletions
6
docs/reference/classes/generated/grinpy.HavelHakimi.get_process.rst
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
grinpy.HavelHakimi.get\_process | ||
=============================== | ||
|
||
.. currentmodule:: grinpy | ||
|
||
.. automethod:: HavelHakimi.get_process |
6 changes: 6 additions & 0 deletions
6
docs/reference/classes/generated/grinpy.HavelHakimi.is_graphic.rst
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
grinpy.HavelHakimi.is\_graphic | ||
============================== | ||
|
||
.. currentmodule:: grinpy | ||
|
||
.. automethod:: HavelHakimi.is_graphic |
6 changes: 6 additions & 0 deletions
6
docs/reference/classes/generated/grinpy.HavelHakimi.residue.rst
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
grinpy.HavelHakimi.residue | ||
========================== | ||
|
||
.. currentmodule:: grinpy | ||
|
||
.. automethod:: HavelHakimi.residue |
6 changes: 6 additions & 0 deletions
6
docs/reference/functions/generated/grinpy.functions.degree.average_degree.rst
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
grinpy.functions.degree.average\_degree | ||
======================================= | ||
|
||
.. currentmodule:: grinpy.functions.degree | ||
|
||
.. autofunction:: average_degree |
6 changes: 6 additions & 0 deletions
6
...functions/generated/grinpy.functions.degree.closed_neighborhood_degree_list.rst
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
grinpy.functions.degree.closed\_neighborhood\_degree\_list | ||
========================================================== | ||
|
||
.. currentmodule:: grinpy.functions.degree | ||
|
||
.. autofunction:: closed_neighborhood_degree_list |
Oops, something went wrong.