From b54358af5c7ee6a2bab5d77329f90defeb8177f0 Mon Sep 17 00:00:00 2001 From: Maximilian Marx Date: Fri, 20 Oct 2023 18:21:18 +0200 Subject: [PATCH] Configure pycodestyle to avoid mismatching line lengths --- flake.nix | 2 +- nemo-python/pyproject.toml | 2 +- nemo-python/setup.cfg | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 nemo-python/setup.cfg diff --git a/flake.nix b/flake.nix index 43e1cc7b0..d686d39f3 100644 --- a/flake.nix +++ b/flake.nix @@ -188,7 +188,7 @@ rec { cargo doc --workspace pushd nemo-python - pycodestyle . --max-line-length 90 + pycodestyle . VENV="$(mktemp -d)" python3 -m venv "''${VENV}" # shellcheck disable=SC1091 diff --git a/nemo-python/pyproject.toml b/nemo-python/pyproject.toml index 62e874c7a..aba434309 100644 --- a/nemo-python/pyproject.toml +++ b/nemo-python/pyproject.toml @@ -16,4 +16,4 @@ classifiers = [ features = ["pyo3/extension-module"] [tool.black] -line-length = 79 +line-length = 90 diff --git a/nemo-python/setup.cfg b/nemo-python/setup.cfg new file mode 100644 index 000000000..970944103 --- /dev/null +++ b/nemo-python/setup.cfg @@ -0,0 +1,2 @@ +[pycodestyle] +max-line-length = 90