Skip to content

Commit

Permalink
Initial pre-commit settings introduced
Browse files Browse the repository at this point in the history
  • Loading branch information
kuanb committed Nov 23, 2017
1 parent f9993fd commit 312fa4a
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Docs @ http://pre-commit.com/

repos:
- repo: git://github.com/pre-commit/pre-commit-hooks
sha: v0.7.1 # Use the ref you want to point at
hooks:
- id: autopep8-wrapper
- id: check-added-large-files
args: ['--maxkb=500']
- id: check-ast
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-docstring-first
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-xml
- id: check-yaml
args: ['--ignore-tags=!include']
- id: debug-statements
- id: end-of-file-fixer
- id: fix-encoding-pragma
args: ["--remove"]
- id: flake8
- id: trailing-whitespace

- repo: https://github.com/CalthorpeAnalytics/pre-commit-python-sorter.git
sha: 1.0.8
hooks:
- id: python-import-sorter
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Peartree 🍐🌳
.. image:: https://img.shields.io/travis/kuanb/peartree.svg
:target: https://travis-ci.org/kuanb/peartree

Peartree is a library for converting `GTFS <https://developers.google.com/transit/gtfs/>`__ feed schedules into a representative directed network graph. The tool uses `Partridge <https://github.com/remix/partridge>`__ to convert the target operator schedule data into `Pandas <https://github.com/pandas-dev/pandas>`__ dataframes and then `NetworkX <https://networkx.github.io/>`__ to hold the manipulated schedule data as a directed multigraph.
Peartree is a library for converting `GTFS <https://developers.google.com/transit/gtfs/>`_ feed schedules into a representative directed network graph. The tool uses `Partridge <https://github.com/remix/partridge>`__ to convert the target operator schedule data into `Pandas <https://github.com/pandas-dev/pandas>`__ dataframes and then `NetworkX <https://networkx.github.io/>`_ to hold the manipulated schedule data as a directed multigraph.

.. figure:: examples/example.gif
:alt: graph loader animation
Expand Down
1 change: 1 addition & 0 deletions pre-commit-reqs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pre-commit==0.15.2

0 comments on commit 312fa4a

Please sign in to comment.