Skip to content

Commit

Permalink
pyproject.toml for codespell and ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Mar 8, 2023
1 parent 3f7b405 commit 221ebb4
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ruff.yml
Expand Up @@ -13,5 +13,4 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: pip install --user ruff
- run: ruff --ignore=E401,E402,E501,E711,E712,E713,E721,E722,E731,E741,E999,F401,F403,F524,F541,F632,F811,F821,F841
--exclude=tests,ports/cc3200/tools/uniflash.py --format=github --line-length=337 --target-version=py37 .
- run: ruff --format=github .
46 changes: 46 additions & 0 deletions pyproject.toml
@@ -0,0 +1,46 @@
[tool.codespell]
count = ""
ignore-regex = '\b[A-Z]{3}\b'
ignore-words-list = "ans,asend,deques,dout,extint,iput,ure"
quiet-level = 3
skip = [
".*_cache",
"./drivers/cc3100",
"./lib",
"./ports/cc3200/hal",
".git",
"**/build*",
]

[tool.ruff]
exclude= [
"ports/cc3200/tools/uniflash.py",
"tests",
]
extend-select = ["C9", "PLC"]
ignore = [
"E401",
"E402",
"E501",
"E711",
"E712",
"E713",
"E721",
"E722",
"E731",
"E741",
"E999",
"F401",
"F403",
"F524",
"F541",
"F632",
"F811",
"F821",
"F841",
]
line-length = 337
target-version = "py37"

[tool.ruff.mccabe]
max-complexity = 40

0 comments on commit 221ebb4

Please sign in to comment.