Skip to content
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
1 change: 1 addition & 0 deletions changelog.d/silence-hf-warning.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Suppress benign Hugging Face Hub anonymous-request warnings during CLI runs.
7 changes: 7 additions & 0 deletions policyengine_taxsim/cli.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
import logging

import click
import pandas as pd
from pathlib import Path
from io import StringIO

# Suppress benign Hugging Face Hub warnings (e.g., "unauthenticated requests"
# rate-limit notices) — downloads still succeed under the anonymous limit,
# and the message confuses TAXSIM users who don't have an HF account.
logging.getLogger("huggingface_hub").setLevel(logging.ERROR)

try:
from .runners.policyengine_runner import PolicyEngineRunner
from .runners.taxsim_runner import TaxsimRunner
Expand Down
Loading