Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
micropython/pyproject.toml
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
61 lines (56 sloc)
1.42 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[tool.codespell] | |
count = "" | |
ignore-regex = '\b[A-Z]{3}\b' | |
ignore-words-list = "ans,asend,deques,dout,extint,hsi,iput,mis,numer,shft,technic,ure" | |
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/esp32/managed_components,\ | |
./ports/nrf/drivers/bluetooth/s1*,\ | |
./ports/psoc6/boards,\ | |
./ports/renesas-ra,\ | |
./ports/stm32/usbhost,\ | |
./tests,\ | |
ACKNOWLEDGEMENTS,\ | |
""" | |
[tool.ruff] | |
# Exclude third-party code from linting and formatting | |
extend-exclude = ["lib"] | |
line-length = 99 | |
target-version = "py37" | |
[tool.ruff.lint] | |
extend-select = ["C9", "PLC"] | |
ignore = [ | |
"E401", | |
"E402", | |
"E722", | |
"E731", | |
"E741", | |
"F401", | |
"F403", | |
"F405", | |
"PLC1901", | |
] | |
[tool.ruff.mccabe] | |
max-complexity = 40 | |
[tool.ruff.per-file-ignores] | |
# Exclude all tests from linting (does not apply to formatting). | |
"tests/**/*.py" = ["ALL"] | |
"ports/cc3200/tools/uniflash.py" = ["E711"] | |
# manifest.py files are evaluated with some global names pre-defined | |
"**/manifest.py" = ["F821"] | |
"ports/**/boards/**/manifest_*.py" = ["F821"] | |
[tool.ruff.format] | |
# Exclude third-party code, and exclude the following tests: | |
# basics: needs careful attention before applying automatic formatting | |
# repl_: not real python files | |
# viper_args: uses f(*) | |
exclude = ["tests/basics/*.py", "tests/*/repl_*.py", "tests/micropython/viper_args.py"] |