Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2523f89

Browse files
fix(KDP): reformatting with pre-commits
1 parent 97b41c3 commit 2523f89

File tree

3 files changed

+32
-17
lines changed

3 files changed

+32
-17
lines changed

.isort.cfg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[settings]
2+
profile=black
3+
multi_line_output=3
4+
include_trailing_comma=True
5+
force_grid_wrap=0
6+
use_parentheses=True
7+
ensure_newline_before_comments=True
8+
line_length=88

.pre-commit-config.yaml

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,23 @@ default_stages: [pre-commit]
55
default_install_hook_types: [pre-commit, commit-msg]
66

77
repos:
8-
- repo: https://github.com/timothycrosley/isort
9-
rev: 5.12.0
10-
hooks:
11-
- id: isort
12-
args:
13-
[
14-
"--profile=black",
15-
"--py=311",
16-
"--line-length=120",
17-
"--multi-line=3",
18-
"--trailing-comma",
19-
"--force-grid-wrap=0",
20-
"--use-parentheses",
21-
"--ensure-newline-before-comments",
22-
"--project=CORE,src,config,preprocess,train,transform,main,model",
23-
]
8+
# Temporarily disabled isort as it conflicts with ruff-format
9+
# - repo: https://github.com/timothycrosley/isort
10+
# rev: 5.12.0
11+
# hooks:
12+
# - id: isort
13+
# args:
14+
# [
15+
# "--profile=black",
16+
# "--py=311",
17+
# "--line-length=120",
18+
# "--multi-line=3",
19+
# "--trailing-comma",
20+
# "--force-grid-wrap=0",
21+
# "--use-parentheses",
22+
# "--ensure-newline-before-comments",
23+
# "--project=CORE,src,config,preprocess,train,transform,main,model",
24+
# ]
2425

2526
- repo: https://github.com/astral-sh/ruff-pre-commit
2627
# Ruff version.

kdp/__init__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# project plugin
2-
from kdp.features import CategoricalFeature, DateFeature, FeatureType, NumericalFeature, TextFeature
2+
from kdp.features import (
3+
CategoricalFeature,
4+
DateFeature,
5+
FeatureType,
6+
NumericalFeature,
7+
TextFeature,
8+
)
39
from kdp.layers_factory import PreprocessorLayerFactory
410
from kdp.pipeline import FeaturePreprocessor, Pipeline, ProcessingStep
511
from kdp.processor import (

0 commit comments

Comments
 (0)