Skip to content

Commit 0d8fe8f

Browse files
authored
Merge pull request #290 from bjester/remove-print
Removes released debugging print statements
2 parents 6ab9a90 + 002a8b6 commit 0d8fe8f

6 files changed

Lines changed: 13 additions & 4 deletions

File tree

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ insert_final_newline = true
1010
charset = utf-8
1111
end_of_line = lf
1212

13+
[*.{yaml,yml}]
14+
indent_size = 2
15+
1316
[*.bat]
1417
indent_style = tab
1518
end_of_line = crlf

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ repos:
99
- id: debug-statements
1010
- id: end-of-file-fixer
1111
exclude: '^.+?\.json$'
12+
- repo: https://github.com/PyCQA/flake8
13+
rev: 7.1.2
14+
hooks:
15+
- id: flake8
16+
additional_dependencies: ['flake8-print==5.0.0']
1217
- repo: https://github.com/asottile/reorder_python_imports
1318
rev: v1.4.0
1419
hooks:

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
List of the most important changes for each release.
44

5+
## 0.8.9
6+
- Removes debugging print statements
7+
- Adds flake8 linting
8+
59
## 0.8.8
610
- Adds support for Python 3.14
711

morango/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.8.8"
1+
__version__ = "0.8.9"

morango/models/core.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,8 +483,6 @@ def _deserialize_store_model(self, fk_cache, defer_fks=False, sync_filter=None):
483483
klass_model.syncing_objects.filter(id=self.id).delete()
484484
return None, deferred_fks
485485
else:
486-
if sync_filter:
487-
print("Has filter", sync_filter)
488486
# load model into memory
489487
app_model = klass_model.deserialize(json.loads(self.serialized), sync_filter=sync_filter)
490488
app_model._morango_source_id = self.source_id

morango/sync/operations.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,6 @@ def _deserialize_from_store(profile, skip_erroring=False, filter=None):
465465
lambda x, y: x | y,
466466
[Q(partition__startswith=prefix) for prefix in filter],
467467
)
468-
print("prefix_condition: ", prefix_condition)
469468
store_models = store_models.filter(prefix_condition)
470469

471470
# if requested, skip any records that previously errored, to be faster

0 commit comments

Comments
 (0)