Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pre commit configuration (original, reworking) #28

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ language: python
python:
- "3.8"

install: "pip install . pre-commit"
install: "pip install Cython && pip install . pre-commit"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be because install_requires happens only at install time, but cython basically needs to be a dev requirement? Should we make a requirements-dev.txt file which has cython and nose in it? That's what I have done in other projects. Then the first half becomes pip install -r requirements-dev.txt

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied in the new PR.


jobs:
include:
Expand Down
6 changes: 2 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,11 @@
],
setup_requires=["setuptools>=18.0", "cython"],
install_requires=[
"setuptools>=18.0",
"pandas",
"networkx==1.11",
"pyshp",
"smopy",
"Cython",
"nose",
"six",
"geoindex",
"osmread==0.2",
Expand All @@ -46,8 +45,7 @@
"pyproj",
"matplotlib-scalebar==0.6.1",
],
tests_require=["nose"],
ext_modules=[Extension("gtfspy.routing.label", sources=["gtfspy/routing/label.pyx"],),],
ext_modules=[Extension("gtfspy.routing.label", sources=["gtfspy/routing/label.pyx"])],
keywords=[
"transit",
"routing" "gtfs",
Expand Down