JeffYang52415 commited on
Commit
8f24676
·
unverified ·
1 Parent(s): c3a92d2

refactor: linter

Browse files
Files changed (2) hide show
  1. .pre-commit-config.yaml +2 -4
  2. pyproject.toml +6 -18
.pre-commit-config.yaml CHANGED
@@ -72,12 +72,10 @@ repos:
72
  - repo: https://github.com/nbQA-dev/nbQA
73
  rev: 1.7.1
74
  hooks:
75
- - id: nbqa-black
76
- additional_dependencies: [black]
77
  - id: nbqa-isort
78
- additional_dependencies: [isort]
79
  - id: nbqa-flake8
80
- additional_dependencies: [flake8]
81
  - repo: https://github.com/asottile/pyupgrade
82
  rev: v3.15.0
83
  hooks:
 
72
  - repo: https://github.com/nbQA-dev/nbQA
73
  rev: 1.7.1
74
  hooks:
75
+ - id: nbqa-ruff
76
+ additional_dependencies: [ruff]
77
  - id: nbqa-isort
 
78
  - id: nbqa-flake8
 
79
  - repo: https://github.com/asottile/pyupgrade
80
  rev: v3.15.0
81
  hooks:
pyproject.toml CHANGED
@@ -27,7 +27,6 @@ pyaudio = "^0.2.14"
27
 
28
  [tool.poetry.group.dev.dependencies]
29
  pytest = "^7.0.0"
30
- black = { version = "^23.9.1", allow-prereleases = true }
31
  flake8 = "^6.1.0"
32
  isort = "^5.12.0"
33
  mypy = "^1.5.1"
@@ -35,28 +34,17 @@ pre-commit = "^3.4.0"
35
  types-python-dateutil = "^2.8.19.14"
36
  ipykernel = "^6.7.0"
37
 
38
- [tool.black]
39
- line-length = 88
40
- exclude = """
41
- /(
42
- \\.git
43
- | \\.venv
44
- | build
45
- | dist
46
- )/
47
- """
48
-
49
- [tool.isort]
50
- profile = "black"
51
- line_length = 88
52
- known_first_party = ["llmdataparser"]
53
-
54
  [tool.ruff]
55
  line-length = 88
56
 
57
  [tool.ruff.lint]
58
- ignore = ["E501"]
59
  select = ["E", "F", "I"]
 
 
 
 
 
 
60
 
61
  [build-system]
62
  requires = ["poetry-core>=1.5.0"]
 
27
 
28
  [tool.poetry.group.dev.dependencies]
29
  pytest = "^7.0.0"
 
30
  flake8 = "^6.1.0"
31
  isort = "^5.12.0"
32
  mypy = "^1.5.1"
 
34
  types-python-dateutil = "^2.8.19.14"
35
  ipykernel = "^6.7.0"
36
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  [tool.ruff]
38
  line-length = 88
39
 
40
  [tool.ruff.lint]
 
41
  select = ["E", "F", "I"]
42
+ ignore = ["E501"]
43
+
44
+ [tool.ruff.format]
45
+ quote-style = "double"
46
+ indent-style = "space"
47
+ skip-magic-trailing-comma = false
48
 
49
  [build-system]
50
  requires = ["poetry-core>=1.5.0"]