mongodb / flask-pymongo

PyMongo support for Flask applications
BSD 2-Clause "Simplified" License
721 stars 175 forks source link

Black formatter #158

Closed pticptenec closed 1 year ago

pticptenec commented 2 years ago

Hello, @dcrosta!

I understand, it's may be too late for this PR, but I've found this library and I made a little project with it. I found this repo a little bit outdated, so I've decided to contribute.

I added black support in tox's env 'style', as you mentioned in issue https://github.com/dcrosta/flask-pymongo/issues/128 You said you want to keep your flake8 imports plugin ordering, but black currently support the way it is already. flake8 had only one conflict with current black: W503 rule, so I added it to ignore.

p.s. this is my first PR, so if you have something to fix up here, let me know! p.p.s. If you don't mind, may be I can do next issue with mypy? p.p.p.s. pymongo's current version 4.1.1, may be we can update flask_pymongo to support this version as well?

pticptenec commented 2 years ago

Finaly had time to fix up CI issue. Turns out it was dependencies for flask < 2.0 version. Added them to tox.ini