Skip to content

Commit

Permalink
Stop syncing location logs due to picklepete/pyicloud#456\n\nhttps://…
Browse files Browse the repository at this point in the history
  • Loading branch information
hulloitskai committed Oct 21, 2024
1 parent d43103d commit f8a4d46
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
3 changes: 3 additions & 0 deletions fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ primary_region = "den"
kill_signal = "SIGINT"
swap_size_mb = 1024

[env]
LOCATION_SYNC_DISABLED = "true"

[experimental]
auto_rollback = true

Expand Down
2 changes: 1 addition & 1 deletion icloudctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def login():
and cause.reason == "Missing apple_id field"
):
return {"error": "Bad login"}, 400
raise error
return {"error": str(message)}, 500
except Exception as error:
return {"error": str(error)}, 500

Expand Down
6 changes: 3 additions & 3 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ check:
tags: py
check-black:
files: *modified-files
run: poetry run black --check --force-exclude {files}
run: poetry run black --check {files}
glob: "*.py"
tags: py

Expand Down Expand Up @@ -55,7 +55,7 @@ fix:
tags: py
check-black:
files: *modified-files
run: poetry run black --force-exclude {files}
run: poetry run black /node_modules/ {files}
glob: "*.py"
tags: py

Expand Down Expand Up @@ -93,7 +93,7 @@ pre-commit:
glob: "*.py"
tags: py
check-black:
run: poetry run black --check --force-exclude {staged_files}
run: poetry run black --check {staged_files}
glob: "*.py"
tags: py

Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
exclude = "(__pycache__|node_modules|^vendor|^.husky|^tmp|^storage|^public/dist-\\w+)"

[tool.black]
extend-exclude = "(__pycache__|node_modules|^/vendor|^/.husky|^/tmp|^/storage|^/public/dist-\\w+)"
extend-exclude = "(__pycache__|node_modules|^/vendor|^/tmp|^/storage|^/public/dist-\\w+)"
force-exclude = "(__pycache__|node_modules|^/vendor|^/tmp|^/storage|^/public/dist-\\w+)"

[build-system]
requires = ["poetry-core"]
Expand Down

0 comments on commit f8a4d46

Please sign in to comment.