Skip to content

Commit

Permalink
[blackd] Update line length, and format files
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskr97 committed May 1, 2022
1 parent a277b11 commit 163f0c1
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Run Black Formatter
uses: psf/black@stable
with:
options: "--check --verbose"
options: "--check --verbose --line-length 180"

check-image-build:
name: Build Container Image
Expand Down
2 changes: 1 addition & 1 deletion main-rq.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from crashserver.server import create_app
from crashserver.server.models import Storage

if __name__ == '__main__':
if __name__ == "__main__":
app = create_app()
with app.app_context(), Connection(Redis("redis")):
Storage.load_storage_modules()
Expand Down
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# fmt: off
import flask_migrate
from gevent import monkey

monkey.patch_all()
# fmt: on

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.black]
line-length = 120
line-length = 180

[tool.pytest.ini_options]
log_cli = true
Expand Down
1 change: 0 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

@pytest.fixture(scope="session", autouse=True)
def setup_session(client):

# Create Database
flask_migrate.upgrade()

Expand Down
2 changes: 1 addition & 1 deletion tests/functional/test_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import pytest
from minio import Minio


from crashserver.server import db
from crashserver.server.models import Storage

Expand Down Expand Up @@ -41,6 +40,7 @@ class SampleFile:
def __init__(self, filename, file_content):
self.path = Path(filename)
self.content = file_content

self.file_all = SampleFile("all_platforms.txt", b"ThisIsTheSavedFileContent!\n")
self.file_s3 = SampleFile("s3only.txt", b"ThisFileIsOnS3Only!\n")
self.file_fs = SampleFile("fsonly.txt", b"ThisFileIsOnFilesystemOnly!\n")
Expand Down

0 comments on commit 163f0c1

Please sign in to comment.