💄 Introduce black & isort
This commit is contained in:
parent
9becfc857d
commit
6a90e4a44a
14 changed files with 311 additions and 89 deletions
|
|
@ -27,6 +27,8 @@ dependencies = [
|
|||
|
||||
[tool.poetry.group.dev.dependencies]
|
||||
ipython = ">=9.5.0,<10.0.0"
|
||||
black = "^25.9.0"
|
||||
isort = "^6.0.1"
|
||||
|
||||
[project.optional-dependencies]
|
||||
auth = ["passlib", "pyjwt", "crypto", "argon2-cffi", "python-multipart"]
|
||||
|
|
@ -36,3 +38,23 @@ packages = [ { include = "ohmyapi", from = "src" } ]
|
|||
|
||||
[project.scripts]
|
||||
ohmyapi = "ohmyapi.cli:app"
|
||||
|
||||
[tool.black]
|
||||
line-length = 88
|
||||
target-version = ['py39', 'py310', 'py311', 'py312', 'py313']
|
||||
include = '\.pyi?$'
|
||||
exclude = '''
|
||||
/(
|
||||
\.git
|
||||
| \.venv
|
||||
| build
|
||||
| dist
|
||||
)/
|
||||
'''
|
||||
|
||||
[tool.isort]
|
||||
profile = "black" # makes imports compatible with black
|
||||
line_length = 88
|
||||
multi_line_output = 3
|
||||
include_trailing_comma = true
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue