Skip to content

Commit 6ee0dc4

Browse files
committed
Replace black and isort with ruff and pyright
1 parent 0bf15f9 commit 6ee0dc4

1 file changed

Lines changed: 15 additions & 17 deletions

File tree

pyproject.toml

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ classifiers = [
3131
[project.optional-dependencies]
3232
dev = [
3333
"datamodel-code-generator",
34+
"pandas-stubs",
3435
"pytest",
35-
"black",
36-
"isort",
36+
"pyright",
37+
"ruff",
3738
"codespell"
3839
]
3940

@@ -58,23 +59,20 @@ include = ["harp*"]
5859

5960
[tool.setuptools_scm]
6061

61-
[tool.black]
62+
[tool.ruff]
6263
line-length = 108
63-
target-version = ['py39']
64-
include = '\.pyi?$'
65-
extend-exclude = '''
66-
# A regex preceded with ^/ will apply only to files and directories
67-
# in the root of the project.
68-
(
69-
^/LICENSE
70-
^/README.md
71-
| reflex-generator
72-
)
73-
'''
64+
target-version = "py39"
65+
exclude = [
66+
"reflex-generator"
67+
]
7468

75-
[tool.isort]
76-
profile = 'black'
77-
extend_skip = 'reflex-generator'
69+
[tool.pyright]
70+
venvPath = "."
71+
venv = ".venv"
72+
exclude = [
73+
".venv/*",
74+
"reflex-generator"
75+
]
7876

7977
[tool.codespell]
8078
skip = '.git,*.pdf,*.svg'

0 commit comments

Comments
 (0)