catmaid / catpy

Python client for the CATMAID API
MIT License
4 stars 3 forks source link

Blacken code #29

Open clbarnes opened 6 years ago

clbarnes commented 6 years ago

https://github.com/ambv/black

To do:

While we're at it, make lint can go in the pre-commit hooks too, if the CI's going to fail on it.

clbarnes commented 6 years ago

Shell one-liner to see if python is modern enough to run black

python -c "import platform, sys; sys.exit(tuple(int(v) for v in platform.python_version().split('.')) < (3,6))"

N.B. probably better to just have pip install black where appropriate and then have make lint do black && black --check .