Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run black #125

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Future version
v1.14.0

- Added support for bigBed files

Expand Down
3 changes: 2 additions & 1 deletion PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ What was changed in this pull request?

Why is it necessary?

Fixes #___
Fixes #\_\_\_

## Checklist

- [ ] Unit tests added or updated
- [ ] Documentation added or updated
- [ ] Updated CHANGELOG.md
- [ ] Run black
2 changes: 1 addition & 1 deletion fragments/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@


class FragmentsConfig(AppConfig):
name = 'fragments'
name = "fragments"
1 change: 0 additions & 1 deletion fragments/drf_disable_csrf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@


class CsrfExemptSessionAuthentication(SessionAuthentication):

def enforce_csrf(self, request):
return # To not perform the csrf check previously happening
9 changes: 5 additions & 4 deletions fragments/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@

class CoolerFileBroken(APIException):
status_code = 500
default_detail = 'The cooler file is broken.'
default_code = 'cooler_file_broken'
default_detail = "The cooler file is broken."
default_code = "cooler_file_broken"


class SnippetTooLarge(APIException):
status_code = 400
default_detail = 'The requested snippet is too large'
default_code = 'snippet_too_large'
default_detail = "The requested snippet is too large"
default_code = "snippet_too_large"
57 changes: 39 additions & 18 deletions fragments/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,53 @@ class Migration(migrations.Migration):

initial = True

dependencies = [
]
dependencies = []

operations = [
migrations.CreateModel(
name='ChromInfo',
name="ChromInfo",
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created', models.DateTimeField(auto_now_add=True)),
('uuid', models.CharField(default=slugid.slugid.nice, max_length=100, unique=True)),
('datafile', models.TextField()),
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("created", models.DateTimeField(auto_now_add=True)),
(
"uuid",
models.CharField(
default=slugid.slugid.nice, max_length=100, unique=True
),
),
("datafile", models.TextField()),
],
options={
'ordering': ('created',),
},
options={"ordering": ("created",)},
),
migrations.CreateModel(
name='ChromSizes',
name="ChromSizes",
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created', models.DateTimeField(auto_now_add=True)),
('uuid', models.CharField(default=slugid.slugid.nice, max_length=100, unique=True)),
('datafile', models.TextField()),
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("created", models.DateTimeField(auto_now_add=True)),
(
"uuid",
models.CharField(
default=slugid.slugid.nice, max_length=100, unique=True
),
),
("datafile", models.TextField()),
],
options={
'ordering': ('created',),
},
options={"ordering": ("created",)},
),
]
12 changes: 3 additions & 9 deletions fragments/migrations/0002_auto_20170406_2322.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,9 @@

class Migration(migrations.Migration):

dependencies = [
('fragments', '0001_initial'),
]
dependencies = [("fragments", "0001_initial")]

operations = [
migrations.DeleteModel(
name='ChromInfo',
),
migrations.DeleteModel(
name='ChromSizes',
),
migrations.DeleteModel(name="ChromInfo"),
migrations.DeleteModel(name="ChromSizes"),
]
Loading