1
0
Fork 0
Commit Graph

12 Commits

Author SHA1 Message Date
Anna Glasgall 285e62559e
magic: use pgcli.connect_uri instead of connect (#1375)
This makes %pgcli work even if you use non-password (e.g. TLS cert)
authentication
2022-10-27 17:40:19 -07:00
Georgy Frolov a017fa96bf
fix IPython magic (#1253) 2021-03-12 10:16:14 -08:00
Miroslav Šedivý 762fb4b8da
Modernize code to Python 3.6+ (#1229)
1. `class A(object)` can be written as `class A:`
2. replace `dict([…])` and `set([…])` with `{…}`
3. use f-strings or compact `.format`
4. use `yield from` instead of `yield` in a `for` loop
5. import `mock` from `unittest`
6. expect `OSError` instead of `IOError` or `select` error
7. use Python3 defaults for file reading or `super()`
8. remove redundant parenthesis (keep those in tuples though)
9. shorten set intersection instead of creating lists
10. backslashes in strings do not have to be escaped if prepended with `r`
2021-02-12 21:34:56 +02:00
Martin Matějek 6b2e8df8bd
run black again 2019-10-29 17:47:18 +01:00
Irina Truong 8cb7009bcd
black all the things. (#1049)
* added black to develop guide

* no need for pep8radius.

* changelog.

* Add pre-commit checkbox.

* Add pre-commit to dev reqs.

* Add pyproject.toml for black.

* Pre-commit config.

* Add black to travis and dev reqs.

* Install and run black in travis.

* Remove black from dev reqs.

* Lower black target version.

* Re-format with black.
2019-05-25 13:08:56 -07:00
Irina Truong 9e54a9ef56 Fix for ipython sql connection. Fixes #891. 2018-06-01 08:18:24 -07:00
Étienne BERSAC e124c03575
Fix PEP8 empty line errors 2017-06-14 18:12:05 +02:00
Darik Gamble 7adaa498b2 Update magic to the latest MetaQuery design 2015-10-28 10:58:29 -04:00
Darik Gamble 29ffe3aae7 print sql magic connection alias when using %pgcli magic 2015-01-12 13:02:22 -05:00
darikg f93c789532 don't rerun a query in ipython magic if it was mutating 2015-01-10 20:58:54 -05:00
darikg 50c3ba457e let sql-magic handle identifying connections by uri or alias string, and persist pgcli object through multiple cli sessions 2015-01-10 20:58:52 -05:00
Darik Gamble f532126de1 add new ipython magic %pgcli for data exploration 2015-01-10 00:27:05 -08:00