Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump pylint from 3.1.0 to 3.2.3 #868

Merged
merged 2 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bin/update_dev_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ def update_remote_dev_data():
)


def update_dev_data():
def update_dev_data(db):
"""Create some usable data to run against in dev."""

raw_rules = {
"example.org": Reason.PUBLISHER_BLOCKED,
"example.net": Reason.MEDIA_VIDEO,
"bad.example.com": Reason.MALICIOUS,
}
CustomRules(request.db).load_simple_rules(raw_rules)
CustomRules(db).load_simple_rules(raw_rules)
print(f"Loaded {len(raw_rules)} custom rules")


Expand All @@ -55,4 +55,4 @@ def update_dev_data():
request = env["request"]

with request.tm:
update_dev_data()
update_dev_data(request.db)
1 change: 1 addition & 0 deletions checkmate/scripts/init_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def main():
if args.delete:
delete(engine)

stamped = None
if args.create or args.stamp:
stamped = is_stamped(engine)

Expand Down
Loading
Loading