chore(setup): put setup function under a if __name__ == '__main__' block

This commit is contained in:
Xuehai Pan 2025-02-22 16:55:16 +08:00
parent 7e56376f17
commit 5def9731a0
2 changed files with 43 additions and 45 deletions

View file

@ -25,7 +25,7 @@ repos:
- id: debug-statements
- id: double-quote-string-fixer
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.4
rev: v0.9.7
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
@ -36,7 +36,7 @@ repos:
- id: pyupgrade
args: [--py38-plus] # sync with requires-python
- repo: https://github.com/pycqa/flake8
rev: 7.1.1
rev: 7.1.2
hooks:
- id: flake8
additional_dependencies: