Skip to content

Commit

Permalink
Reformat with black
Browse files Browse the repository at this point in the history
Upgrade formatted to match latest black standards. Include new  E203,E701 to flake8 ignores as it conflicts with the latest black standards.
  • Loading branch information
jamesvandyne committed Oct 26, 2024
1 parent 1b79f89 commit 69948b8
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
3 changes: 1 addition & 2 deletions apps/application/entry/_post_to_bridgy.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
from data.post import models as post_models


class AlreadySentWebmention(Exception):
...
class AlreadySentWebmention(Exception): ...


def post_to_mastodon(t_entry: entry_models.TEntry, entry_absolute_url: str):
Expand Down
3 changes: 1 addition & 2 deletions apps/domain/files/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
from domain.images import images as image_ops


class UnprocessableFile(Exception):
...
class UnprocessableFile(Exception): ...


def get_file(
Expand Down
1 change: 1 addition & 0 deletions apps/domain/gis/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Mercator calculations used to fix the projection from geo-coordinate to x,y (flat) coordinates.
Adapted from: https://wiki.openstreetmap.org/wiki/Mercator
"""

import math

EARTH_RADIUS_KM = 6378137.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
API Views for interacting with Strava
"""

import logging
from urllib import parse as url_parse

Expand Down
2 changes: 1 addition & 1 deletion requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ types-requests==2.28.11.7
typing-extensions==4.4.0
mypy-extensions==0.4.3
mkdocs==1.2.2
isort==5.11.2
isort==5.13.2
django-meta==2.1.0
factory_boy==3.2.1
envparse==0.2.0
Expand Down
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ commands =
mypy --config-file=tox.ini apps

[testenv:lint]
profile = black
deps =
{[testenv]deps}
commands =
Expand All @@ -56,7 +57,7 @@ commands =
exclude = migrations,urls.py,manage.py,settings.py,admin.py,.tox,venv
max-line-length = 120
max-complexity = 10
ignore = E203,W503,W504,I001
ignore = E203,W503,W504,I001,E203,E701
enable-extensions=G
per-file-ignores =
*/__init__.py: F401
Expand Down

0 comments on commit 69948b8

Please sign in to comment.