Skip to content

Commit

Permalink
remove print statement, add github check for it
Browse files Browse the repository at this point in the history
  • Loading branch information
wagner-intevation committed Jul 30, 2024
1 parent 336e9be commit 48a3a29
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/print.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Check for print statements

on:
push:
pull_request:

permissions:
contents: read

jobs:
print:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Grep for print
run: |
! grep -E 'print *\(' -r intelmq/ intelmq_certbund_contact/*.py
1 change: 0 additions & 1 deletion intelmq_certbund_contact/rulesupport.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,6 @@ def as_dict_for_event(self, event):
aggregate_identifier = self.aggregate_key.copy()
for field in self.aggregate_fields:
aggregate_identifier[field] = event.get(field)
print('as_dict_for_event, aggregate_identifier', aggregate_identifier, )

return dict(medium=self.medium,
recipient_address=self.recipient_address,
Expand Down

0 comments on commit 48a3a29

Please sign in to comment.