Commit Graph

9 Commits

Author SHA1 Message Date
Rob Hudson ea063edf0a
Update linting configuration (#1915)
* Update linting configuration

This removes flake8 in favor of ruff, which also provides isort support, and
updates all files to be black, isort, and ruff compliant. This also adds black
and ruff checks to the tox and Github linting workflow.

* Tweak the code coverage config and calls
2023-05-17 23:19:14 +07:00
Hugo d5175c38da
Drop python2-specific syntax (#1674)
* Drop syntax required only for Python 2

* Drop python2-style super() calls

Co-authored-by: Selwin Ong <selwin.ong@gmail.com>
2022-07-24 08:17:07 +07:00
Zekui Shi 51fee72f66 fix print in example 2014-05-21 09:37:10 +02:00
Vincent Driessen 38ec259b6e Enable the most modern Python syntax. 2014-05-05 10:50:02 +02:00
Vincent Driessen 48cee215af Rewrite of the connection setup.
I'd want to advice against using `use_connection()` more, as the
connection setup is less explicit, and also pollutes global memory.

Because, well:

    $ python -m this | head -n4 | tail -n1

;)
2012-05-21 08:08:59 +02:00
Jeffrey Gelens 31259fa106 Fixed examples. use_connection is now being used. 2012-05-20 23:49:08 +02:00
Vincent Driessen 22f3da1832 Update README (and example). 2011-11-15 22:45:51 +01:00
Vincent Driessen cd31f6aba9 Adapt examples so they run again.
Remove sync part of the example.
2011-11-15 00:35:18 +01:00
Vincent Driessen 9b51083fd2 Add example and README updates. 2011-11-14 15:15:05 +01:00