Closed shadowv0vshadow closed 5 months ago
Add .pre-commit-config.yaml for lint in git commit. And add lint CI for lint.
.pre-commit-config.yaml
If you want use lint tool, you should install pre-commit. i add pre-commit in requirements.txt.
pre-commit
requirements.txt
Github action:
name: Lint code on: [push, pull_request] permissions: contents: read jobs: lint: runs-on: ubuntu-20.04 timeout-minutes: 10 steps: - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 - name: Set up Python uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0 with: python-version: "3.x" - name: Run pre-commit uses: pre-commit/action@646c83fcd040023954eafda54b4db0192ce70507 # v3.0.0
Maybe We can also use pyproject.toml manage project later
pyproject.toml
Putting this as a draft until we've merged other requests. Thanks for the huge step!
Add
.pre-commit-config.yaml
for lint in git commit. And add lint CI for lint.If you want use lint tool, you should install
pre-commit
. i add pre-commit inrequirements.txt
.Github action:
Maybe We can also use
pyproject.toml
manage project later