Skip to content

Commit

Permalink
Update black exclude dirs and reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
danniel committed Dec 26, 2023
1 parent 967115b commit 6c0c770
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 13 deletions.
1 change: 0 additions & 1 deletion backend/donations/tests.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@

# Create your tests here.
11 changes: 7 additions & 4 deletions backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ exclude = [
"node_modules",
"venv",
"migrations",
"_appengine_legacy",
]

# Same as Black.
Expand Down Expand Up @@ -75,7 +76,9 @@ filterwarnings = [
[tool.black]
line-length = 120
target-version = ["py311"]
extend-exclude = '''(
(.+/)?migrations/.+
(.+/)?_appengine_legacy/.+
)'''
extend-exclude = '''
/(
| _appengine_legacy
| migrations
)/
'''
8 changes: 2 additions & 6 deletions backend/users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ class User(AbstractUser):
editable=False,
)

email = models.EmailField(
verbose_name=_("email address"), blank=False, null=False, unique=True
)
email = models.EmailField(verbose_name=_("email address"), blank=False, null=False, unique=True)

ngo = models.ForeignKey(
Ngo,
Expand All @@ -71,9 +69,7 @@ class User(AbstractUser):
)

# originally: verified
is_verified = models.BooleanField(
verbose_name=_("is verified"), db_index=True, default=False
)
is_verified = models.BooleanField(verbose_name=_("is verified"), db_index=True, default=False)

validation_token = models.UUIDField(verbose_name=_("validation token"), blank=True, null=True, editable=False)

Expand Down
1 change: 0 additions & 1 deletion backend/users/tests.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@

# Create your tests here.
1 change: 0 additions & 1 deletion backend/users/views.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@

# Create your views here.

0 comments on commit 6c0c770

Please sign in to comment.