diff --git a/.github/workflows/update_lexicons.yml b/.github/workflows/update_lexicons.yml index 54cfcaa0..1dcafdf5 100644 --- a/.github/workflows/update_lexicons.yml +++ b/.github/workflows/update_lexicons.yml @@ -1,6 +1,9 @@ name: Fetch new lexicons and regenerate code and docs -on: [ workflow_dispatch ] +on: + workflow_dispatch: + schedule: + - cron: '0 12 * * 5' # at 12:00 on Friday day permissions: contents: read diff --git a/update_lexicons.py b/update_lexicons.py index 43925cb5..327ad374 100755 --- a/update_lexicons.py +++ b/update_lexicons.py @@ -152,11 +152,11 @@ def main() -> None: _print('- Running codegen (poetry run atp -s gen all)...') _run_subprocess(['poetry', 'run', 'atp', '-s', 'gen', 'all']) - _print('- Running ruff (poetry run ruff check --fix .)...') - _run_subprocess(['poetry', 'run', 'ruff', 'check', '--fix', '.']) + _print('- Running ruff (poetry run ruff check --quiet --fix .)...') + _run_subprocess(['poetry', 'run', 'ruff', 'check', '--quiet', '--fix', '.']) - _print('- Running ruff format (poetry run ruff -q format .)...') - _run_subprocess(['poetry', 'run', 'ruff', 'format', '-q', '.']) + _print('- Running ruff format (poetry run ruff --quiet format .)...') + _run_subprocess(['poetry', 'run', 'ruff', 'format', '--quiet', '.']) _print('- Generating docs (make -s -C docs gen)...') _remove_content_in_path(_FOLDER_OF_GEN_DOCS)