Skip to content

Commit

Permalink
Added updated ruff configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
justalemon committed Jun 22, 2023
1 parent 83e71cc commit fb16185
Showing 1 changed file with 62 additions and 1 deletion.
63 changes: 62 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,70 @@ readme = { file = ["README.md"], content-type = "text/markdown" }

[tool.ruff]
line-length = 120
ignore = [
"D401",
"D205",
"D212",
"D200",
"D204",
"D203",
"ANN002",
"ANN003",
"ANN101",
"ANN204",
"COM812",
"PLR2004"
]
select = [
"F", # pyflakes
"E", # pycodestyle errors
"W", # pycodestyle warnings
"C", # mccabe complexity
"I", # isort
"N", # naming
"D", # pydocstyle
"ANN", # annotations
"ASYNC", # async
"S", # bandit
"BLE", # blind except
"B", # bugbear
"A", # builtins
"COM", # commas
"C4", # comprehensions
"DTZ", # datetimez
"T10", # debugger
"G", # logging format
"INP", # no pep420
"PIE", # pie? misc checks
"T20", # print
"Q", # quotes
"RSE", # raise's
"RET", # return values
"SLF", # private members
"SIM", # simplify calls
"TID", # tidy imports
"TCH", # type checking
"INT", # get text
"ARG", # unused arguments
"PTH", # use pathlib instead
"TD", # to do's
"FIX", # fix me style messages
"ERA", # eradicate commented code
"PGH", # pygrep hooks
"PLC", # pylint: convention
"PLE", # pylint: errors
"PLR", # pylint: refactor
"PLW", # pylint: warnings
"TRY", # tryceratops, aka exceptions
"RUF", # ruff specific
]

[tool.ruff.per-file-ignores]
"__init__.py" = [
"F401",
"F403"
"F403",
"D104"
]
"setup.py" = [
"D100"
]

0 comments on commit fb16185

Please sign in to comment.