Skip to content

Commit

Permalink
🔨 添加ruffpre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
KimigaiiWuyi committed Feb 15, 2023
1 parent ec3fe28 commit e4f83b9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,7 @@ repos:
# - id: poetry-export
# args: ["-f", "requirements.txt", "--without-hashes", "-o", "requirements.txt"]
# verbose: true
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.245'
hooks:
- id: ruff
1 change: 0 additions & 1 deletion gsuid_core/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,3 @@ async def process():

if __name__ == "__main__":
uvicorn.run(app, host=HOST, port=PORT)
uvicorn.run(app, host=HOST, port=PORT)
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ black = "^22.12.0"
isort = "^5.11.4"
pre-commit = "^2.21.0"
pycln = "^2.1.2"
ruff = "^0.0.245"

[build-system]
requires = ["poetry-core"]
Expand All @@ -34,6 +35,10 @@ skip-string-normalization = true
extend-exclude = '''
'''

[tool.ruff]
line-length = 79
target-version = "py310"

[tool.isort]
profile = "black"
line_length = 79
Expand Down

0 comments on commit e4f83b9

Please sign in to comment.