Skip to content

Commit 11e4155

Browse files
committed
Blackify codebase
1 parent 121ecd0 commit 11e4155

File tree

13 files changed

+463
-348
lines changed

13 files changed

+463
-348
lines changed

README.md

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
Django Postgres composite types
2-
===============================
1+
# Django Postgres composite types
32

43
An implementation of Postgres' [composite types](http://www.postgresql.org/docs/current/static/rowtypes.html)
54
for [Django](https://docs.djangoproject.com/en/1.9/).
65

7-
Usage
8-
-----
6+
## Usage
97

108
Install with:
119

@@ -66,8 +64,7 @@ class Migration(migrations.Migration):
6664
]
6765
```
6866

69-
Examples
70-
--------
67+
## Examples
7168

7269
Array fields:
7370

@@ -93,7 +90,6 @@ Nested types:
9390
class Point(CompositeType):
9491
"""A point on the cartesian plane."""
9592

96-
# pylint:disable=invalid-name
9793
x = models.IntegerField()
9894
y = models.IntegerField()
9995

@@ -110,10 +106,9 @@ class Box(CompositeType):
110106
bottom_right = Point.Field()
111107
```
112108

113-
Gotchas and Caveats
114-
-------------------
109+
## Gotchas and Caveats
115110

116-
The migration operation currently loads the *current* state of the type, not
111+
The migration operation currently loads the _current_ state of the type, not
117112
the state when the migration was written. A generic `CreateType` operation
118113
which takes the fields of the type would be possible, but it would still
119114
require manual handling still as Django's `makemigrations` is not currently
@@ -144,8 +139,8 @@ Lookups and indexes are not implemented yet
144139
([bug #9](https://github.com/danni/django-postgres-composite-types/issues/9),
145140
[bug #10](https://github.com/danni/django-postgres-composite-types/issues/10)).
146141

147-
Running Tests
148-
-------------------
142+
## Running Tests
143+
149144
Clone the repository, go to it's base directory and run the following commands.
150145

151146
pip install tox
@@ -155,16 +150,14 @@ Or if you want a specific environment
155150

156151
tox -e py35-dj2.0
157152

158-
Authors
159-
-------
153+
## Authors
160154

161-
* Danielle Madeley <danielle@madeley.id.au>
162-
* Tim Heap <hello@timheap.me>
155+
- Danielle Madeley <danielle@madeley.id.au>
156+
- Tim Heap <hello@timheap.me>
163157

164-
License
165-
-------
158+
## License
166159

167-
(c) 2016, Danielle Madeley <danielle@madeley.id.au>
160+
(c) 2016, Danielle Madeley <danielle@madeley.id.au>
168161

169162
All rights reserved.
170163

0 commit comments

Comments
 (0)