Skip to content

Commit

Permalink
update ruff calls in codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshalX committed Oct 24, 2024
1 parent b45f96b commit 9a53fa7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/atproto_codegen/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def format_code(filepath: Path, quiet: bool = True) -> None:

# FIXME(MarshalX): doesn't work well with not-project dir
subprocess.run(['ruff', 'format', quiet_option, filepath]) # noqa: S603, S607
subprocess.run(['ruff', quiet_option, '--fix', filepath]) # noqa: S603, S607
subprocess.run(['ruff', 'check', quiet_option, '--fix', filepath]) # noqa: S603, S607
subprocess.run(['ruff', 'format', quiet_option, filepath]) # noqa: S603, S607


Expand Down
4 changes: 2 additions & 2 deletions update_lexicons.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ 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 .)...')
_run_subprocess(['poetry', 'run', 'ruff', '.'])
_print('- Running ruff (poetry run ruff check --fix .)...')
_run_subprocess(['poetry', 'run', 'ruff', 'check', '--fix', '.'])

_print('- Running ruff format (poetry run ruff -q format .)...')
_run_subprocess(['poetry', 'run', 'ruff', 'format', '-q', '.'])
Expand Down

0 comments on commit 9a53fa7

Please sign in to comment.