style: add format checker config that matches FRR style standards

Also move .dir-locals.el to a sample file. This file should not be
in the repository as it affects the user's ability to modify it.

Signed-off-by: Christian Hopps <chopps@labn.net>
This commit is contained in:
Christian Hopps 2023-04-18 05:12:58 -04:00
parent 74aad5ab55
commit 960ab543cf
5 changed files with 9 additions and 0 deletions

3
.flake8 Normal file
View File

@ -0,0 +1,3 @@
[flake8]
max-line-length = 88
extend-ignore = E203

1
.gitignore vendored
View File

@ -87,6 +87,7 @@
{arch}
build
.cache
.dir-locals.el
.msg
.rebase-*
*~

2
.isort.cfg Normal file
View File

@ -0,0 +1,2 @@
[settings]
profile = black

View File

@ -2,5 +2,8 @@
init-hook="import sys; sys.path.insert(0, '..')"
signature-mutators=common_config.retry,retry
[FORMAT]
max-line-length = 88
[MESSAGES CONTROL]
disable=I,C,R,W