mirror of
https://github.com/getredash/redash.git
synced 2025-12-19 17:37:19 -05:00
10
.pre-commit-config.yaml
Normal file
10
.pre-commit-config.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
repos:
|
||||
- repo: https://github.com/PyCQA/isort
|
||||
rev: 5.12.0
|
||||
hooks:
|
||||
- id: isort
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 23.1.0
|
||||
hooks:
|
||||
- id: black
|
||||
language_version: python3
|
||||
18
pyproject.toml
Normal file
18
pyproject.toml
Normal file
@@ -0,0 +1,18 @@
|
||||
[project]
|
||||
requires-python = ">=3.8"
|
||||
|
||||
[tool.black]
|
||||
target-version = ['py38']
|
||||
line-length = 119
|
||||
force-exclude = '''
|
||||
/(
|
||||
migrations
|
||||
)/
|
||||
'''
|
||||
|
||||
[tool.isort]
|
||||
py_version = 38
|
||||
multi_line_output = 3
|
||||
include_trailing_comma = true
|
||||
use_parentheses = true
|
||||
skip = "migrations"
|
||||
@@ -6,3 +6,4 @@ ptvsd==4.3.2
|
||||
freezegun==1.2.1
|
||||
watchdog==0.9.0
|
||||
ptpython==3.0.23
|
||||
pre-commit==3.3.3
|
||||
|
||||
Reference in New Issue
Block a user