2023-03-13 00:19:10 +00:00
|
|
|
[tool.black]
|
|
|
|
line-length = 99
|
|
|
|
|
2023-03-08 02:15:25 +00:00
|
|
|
[tool.codespell]
|
|
|
|
count = ""
|
|
|
|
ignore-regex = '\b[A-Z]{3}\b'
|
2023-06-02 18:21:39 +01:00
|
|
|
ignore-words-list = "ans,asend,deques,dout,extint,hsi,iput,mis,numer,shft,technic,ure"
|
2023-03-08 02:15:25 +00:00
|
|
|
quiet-level = 3
|
|
|
|
skip = """
|
|
|
|
*/build*,\
|
|
|
|
./.git,\
|
|
|
|
./drivers/cc3100,\
|
|
|
|
./lib,\
|
|
|
|
./ports/cc3200/FreeRTOS,\
|
|
|
|
./ports/cc3200/bootmgr/sl,\
|
|
|
|
./ports/cc3200/hal,\
|
|
|
|
./ports/cc3200/simplelink,\
|
|
|
|
./ports/cc3200/telnet,\
|
|
|
|
./ports/nrf/drivers/bluetooth/s1*,\
|
|
|
|
./ports/renesas-ra,\
|
|
|
|
./ports/stm32/usbhost,\
|
|
|
|
./tests,\
|
|
|
|
ACKNOWLEDGEMENTS,\
|
|
|
|
"""
|
2023-03-08 15:09:36 +00:00
|
|
|
|
|
|
|
[tool.ruff]
|
|
|
|
exclude = ["lib", "tests"]
|
|
|
|
extend-select = ["C9", "PLC"]
|
|
|
|
ignore = [
|
|
|
|
"E401",
|
|
|
|
"E402",
|
|
|
|
"E722",
|
|
|
|
"E731",
|
|
|
|
"E741",
|
|
|
|
"F401",
|
|
|
|
"F403",
|
|
|
|
"F405",
|
|
|
|
"PLC1901",
|
|
|
|
]
|
|
|
|
line-length = 337
|
|
|
|
target-version = "py37"
|
|
|
|
|
|
|
|
[tool.ruff.mccabe]
|
|
|
|
max-complexity = 40
|
|
|
|
|
|
|
|
[tool.ruff.per-file-ignores]
|
|
|
|
"ports/cc3200/tools/uniflash.py" = ["E711"]
|
2023-08-09 09:24:29 +01:00
|
|
|
|
|
|
|
# manifest.py files are evaluated with some global names pre-defined
|
|
|
|
"**/manifest.py" = ["F821"]
|
2023-08-15 15:51:37 +01:00
|
|
|
"ports/**/boards/**/manifest_*.py" = ["F821"]
|