-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #253 from webdjoe/bump-docs
Documentation and Linter
- Loading branch information
Showing
13 changed files
with
1,458 additions
and
602 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
exclude = [ | ||
".bzr", | ||
".direnv", | ||
".eggs", | ||
".git", | ||
".git-rewrite", | ||
".hg", | ||
".ipynb_checkpoints", | ||
".mypy_cache", | ||
".nox", | ||
".pants.d", | ||
".pyenv", | ||
".pytest_cache", | ||
".pytype", | ||
".ruff_cache", | ||
".svn", | ||
".tox", | ||
".venv", | ||
".vscode", | ||
"__pypackages__", | ||
"_build", | ||
"buck-out", | ||
"build", | ||
"dist", | ||
"node_modules", | ||
"site-packages", | ||
"venv", | ||
"test", | ||
"tests", | ||
] | ||
|
||
line-length = 90 | ||
indent-width = 4 | ||
|
||
[lint] | ||
select = ["ALL"] | ||
ignore = ["T201", # PRINT statement - IGNORE | ||
"COM812", # Missing trailing comma - IGNORE | ||
"TRY003", # Avoid specifying long messages outside the exception class - TODO: Add exception classes | ||
"TRY301", # raise within try - TODO: Fix this | ||
"BLE001", # Broad Exceptions are not allowed - TODO: Fix this | ||
"EM102", # Exception must not use an f-string literal, assign to variable first - TODO: add exception classes | ||
"I001", # Import sort - TODO: Fix this | ||
"EM101", # Exception must not use a string literal, assign to variable first - TODO: add exception classes | ||
"FBT001", # type hint positional argument - bool is not allowed - IGNORE | ||
"FBT003", # Bool positional argument - IGNORE | ||
"TD002", # Todo error - IGNORE | ||
"TD003", # Todo error - IGNORE | ||
"FIX002", # Fixme error - IGNORE | ||
] | ||
# Todo: Add exception classes EM102, BLE001, EM101 | ||
# Todo: Fix import sorting issue I001 | ||
unfixable = ["B"] | ||
|
||
[lint.per-file-ignores] | ||
"vesync.py" = ["F403"] | ||
"vesyncbulb.py" = ["PLR2004"] | ||
|
||
[lint.pep8-naming] | ||
extend-ignore-names = ["displayJSON"] | ||
|
||
[lint.pydocstyle] | ||
convention = "google" | ||
|
||
[lint.pylint] | ||
max-public-methods = 30 | ||
max-args = 6 | ||
|
||
[format] | ||
quote-style = "preserve" | ||
indent-style = "space" | ||
skip-magic-trailing-comma = false | ||
line-ending = "lf" | ||
|
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
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
Oops, something went wrong.