Add linting scripts and pipeline (#201)
* Add linting scripts and pipeline
This commit is contained in:
1 parent
5b1d3b75e2
commit
1fc29241b4
24 files changed
+525
-310
No files matched your search
+74
-3
@@ -17,13 +17,11 @@ classifiers = [
|
||||
"Intended Audience :: Developers",
|
||||
"Topic :: Text Processing :: Linguistic",
|
||||
"License :: OSI Approved :: Apache Software License",
|
||||
"Programming Language :: Python :: 3.9",
|
||||
"Programming Language :: Python :: 3.10",
|
||||
"Programming Language :: Python :: 3.11",
|
||||
"Programming Language :: Python :: 3.12",
|
||||
"Programming Language :: Python :: 3.13",
|
||||
]
|
||||
requires-python = ">=3.9.0"
|
||||
requires-python = ">=3.11.0"
|
||||
dependencies = [
|
||||
"aioesphomeapi==42.7.0",
|
||||
"netifaces2==0.0.22",
|
||||
@@ -34,6 +32,7 @@ dependencies = [
|
||||
"python-mpv>=1,<2",
|
||||
"zeroconf<1",
|
||||
"getmac<1",
|
||||
"types-protobuf",
|
||||
]
|
||||
|
||||
[project.optional-dependencies]
|
||||
@@ -43,6 +42,8 @@ dev = [
|
||||
"mypy",
|
||||
"pylint",
|
||||
"pytest",
|
||||
"isort",
|
||||
"autopep8",
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
@@ -56,3 +57,73 @@ include-package-data = true
|
||||
[tool.setuptools.packages.find]
|
||||
include = ["linux_voice_assistant"]
|
||||
exclude = ["tests", "tests.*"]
|
||||
|
||||
[tool.black]
|
||||
line-length = 200
|
||||
target-version = ['py312', 'py313']
|
||||
include = '\.pyi?$'
|
||||
exclude = '''
|
||||
/(
|
||||
\.eggs
|
||||
| \.git
|
||||
| \.hg
|
||||
| \.mypy_cache
|
||||
| \.tox
|
||||
| \.venv
|
||||
| _build
|
||||
| buck-out
|
||||
| build
|
||||
| dist
|
||||
)/
|
||||
'''
|
||||
|
||||
[tool.isort]
|
||||
profile = "black"
|
||||
line_length = 200
|
||||
multi_line_output = 3
|
||||
include_trailing_comma = true
|
||||
force_grid_wrap = 0
|
||||
use_parentheses = true
|
||||
|
||||
[tool.pylint."MESSAGES CONTROL"]
|
||||
disable = [
|
||||
"abstract-method",
|
||||
"cyclic-import",
|
||||
"duplicate-code",
|
||||
"global-statement",
|
||||
"import-outside-toplevel",
|
||||
"inconsistent-return-statements",
|
||||
"locally-disabled",
|
||||
"not-context-manager",
|
||||
"too-few-public-methods",
|
||||
"too-many-arguments",
|
||||
"too-many-branches",
|
||||
"too-many-instance-attributes",
|
||||
"too-many-lines",
|
||||
"too-many-locals",
|
||||
"too-many-public-methods",
|
||||
"too-many-return-statements",
|
||||
"too-many-statements",
|
||||
"too-many-boolean-expressions",
|
||||
"unnecessary-pass",
|
||||
"unused-argument",
|
||||
"broad-except",
|
||||
"too-many-nested-blocks",
|
||||
"invalid-name",
|
||||
"unused-import",
|
||||
"fixme",
|
||||
"useless-super-delegation",
|
||||
"missing-module-docstring",
|
||||
"missing-class-docstring",
|
||||
"missing-function-docstring",
|
||||
"import-error",
|
||||
"consider-using-with",
|
||||
"R0917",
|
||||
"C0301",
|
||||
]
|
||||
|
||||
[tool.pylint."DESIGN"]
|
||||
max-args = 50
|
||||
|
||||
[tool.pylint.format]
|
||||
expected-line-ending-format = "LF"
|
||||
Reference in new issue
Block a user