Skip to content

Commit a6b49db

Browse files
authored
move isort, black config to pyproject.toml (#817)
this way, the formatters produce the same output whether run via pre-commit or not
1 parent 6f12a9f commit a6b49db

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,12 @@ repos:
1919
rev: 22.3.0
2020
hooks:
2121
- id: black
22-
args: ["--line-length", "100"]
2322

2423
- repo: https://github.com/PyCQA/isort
2524
rev: 5.10.1
2625
hooks:
2726
- id: isort
2827
files: \.py$
29-
args: [--profile=black]
3028

3129
- repo: https://github.com/pre-commit/mirrors-mypy
3230
rev: v0.942

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ test = [
7474
[project.scripts]
7575
jupyter-server = "jupyter_server.serverapp:main"
7676

77+
[tool.black]
78+
line_length = 100
79+
80+
[tool.isort]
81+
profile = "black"
82+
7783
[tool.pytest.ini_options]
7884
addopts = "-raXs --durations 10 --color=yes --doctest-modules"
7985
testpaths = [

0 commit comments

Comments
 (0)