Unverified Commit 9ed0c85f authored by Daniël de Kok's avatar Daniël de Kok Committed by GitHub
Browse files

nix: add black and isort to the closure (#2619)

To make sure that everything is formatted with the same black version
as CI.

I sometimes use isort for new files to get nicely ordered imports,
so add it as well. Also set the isort configuration to format in a
way that is compatible with black.
parent 8ad20daf
...@@ -27,3 +27,6 @@ asyncio_mode = "auto" ...@@ -27,3 +27,6 @@ asyncio_mode = "auto"
[build-system] [build-system]
requires = ["poetry-core>=1.0.0"] requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api" build-backend = "poetry.core.masonry.api"
[tool.isort]
profile = "black"
...@@ -13,3 +13,6 @@ pytest = "^7.4.0" ...@@ -13,3 +13,6 @@ pytest = "^7.4.0"
pytest-asyncio = "^0.21.1" pytest-asyncio = "^0.21.1"
docker = "^7" docker = "^7"
numpy = "^1.20" numpy = "^1.20"
[tool.isort]
profile = "black"
{ {
mkShell, mkShell,
black,
isort,
openssl, openssl,
pkg-config, pkg-config,
protobuf, protobuf,
...@@ -14,6 +16,8 @@ ...@@ -14,6 +16,8 @@
mkShell { mkShell {
buildInputs = buildInputs =
[ [
black
isort
openssl.dev openssl.dev
pkg-config pkg-config
(rust-bin.stable.latest.default.override { (rust-bin.stable.latest.default.override {
......
...@@ -82,3 +82,6 @@ requires = [ ...@@ -82,3 +82,6 @@ requires = [
"poetry-core>=1.0.0", "poetry-core>=1.0.0",
] ]
build-backend = "poetry.core.masonry.api" build-backend = "poetry.core.masonry.api"
[tool.isort]
profile = "black"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment