| 1 |
[build-system] |
| 2 |
requires = ["setuptools"] |
| 3 |
build-backend = "setuptools.build_meta" |
| 4 |
|
| 5 |
[project] |
| 6 |
name = "ekey-bionyxpy" |
| 7 |
description = "Interact with the bionyx third party API of the ekey biometric systems." |
| 8 |
version = "1.0.1" |
| 9 |
readme = "README.md" |
| 10 |
dependencies = ["aiohttp"] |
| 11 |
requires-python = ">=3.11" |
| 12 |
classifiers = [ |
| 13 |
"License :: OSI Approved :: MIT License", |
| 14 |
"Topic :: Home Automation", |
| 15 |
"Programming Language :: Python", |
| 16 |
"Programming Language :: Python :: 3.11", |
| 17 |
"Programming Language :: Python :: 3.12", |
| 18 |
] |
| 19 |
|
| 20 |
[project.urls] |
| 21 |
Repository = "https://github.com/richardpolzer/ekey-bionyx-api" |
| 22 |
Issues = "https://github.com/richardpolzer/ekey-bionyx-api/issues" |
| 23 |
|
| 24 |
|
| 25 |
[tool.black] |
| 26 |
target-version = ['py311'] |
| 27 |
line-length = 120 |
| 28 |
skip-string-normalization = true |
| 29 |
skip-magic-trailing-comma = true |
| 30 |
force-exclude = ''' |
| 31 |
/( |
| 32 |
| docs |
| 33 |
| setup.py |
| 34 |
)/ |
| 35 |
''' |
| 36 |
|
| 37 |
[tool.isort] |
| 38 |
py_version = 311 |
| 39 |
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"] |
| 40 |
default_section = "THIRDPARTY" |
| 41 |
known_third_party = [] |
| 42 |
known_first_party = [] |
| 43 |
known_local_folder = [] |
| 44 |
|
| 45 |
multi_line_output = 3 |
| 46 |
include_trailing_comma = true |
| 47 |
force_grid_wrap = 0 |
| 48 |
use_parentheses = true |
| 49 |
ensure_newline_before_comments = true |
| 50 |
line_length = 120 |
| 51 |
split_on_trailing_comma = true |
| 52 |
lines_after_imports = 2 |
| 53 |
force_single_line = true |
| 54 |
skip_glob = ["docs/*", "setup.py"] |
| 55 |
filter_files = true |
| 56 |
|
| 57 |
[tool.ruff] |
| 58 |
target-version = "py311" |
| 59 |
line-length = 120 |
| 60 |
indent-width = 4 |
| 61 |
extend-exclude = ["docs", "test"] |
| 62 |
|
| 63 |
[tool.ruff.lint] |
| 64 |
select = ["F", "E"] |
| 65 |
extend-select = ["W", "C90", "I", "N", "B", "A", "C4", "PERF", "RUF", "D"] |
| 66 |
|
| 67 |
ignore = ["D100", "D101", "D102", "D103", "D107"] |
| 68 |
fixable = ["ALL"] |
| 69 |
unfixable = [] |
| 70 |
preview = true |
| 71 |
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" |
| 72 |
|
| 73 |
[tool.ruff.lint.isort] |
| 74 |
force-single-line = true |
| 75 |
force-sort-within-sections = false |
| 76 |
lines-after-imports = 2 |
| 77 |
known-first-party = [] |
| 78 |
known-local-folder = [] |
| 79 |
known-third-party = [] |
| 80 |
section-order = [ |
| 81 |
"future", |
| 82 |
"standard-library", |
| 83 |
"third-party", |
| 84 |
"first-party", |
| 85 |
"local-folder", |
| 86 |
] |
| 87 |
|
| 88 |
[tool.ruff.lint.mccabe] |
| 89 |
max-complexity = 24 |
| 90 |
|
| 91 |
[tool.ruff.lint.pycodestyle] |
| 92 |
ignore-overlong-task-comments = true |
| 93 |
|
| 94 |
[tool.ruff.lint.pydocstyle] |
| 95 |
convention = "google" |
| 96 |
|
| 97 |
[tool.ruff.lint.flake8-annotations] |
| 98 |
allow-star-arg-any = true |
| 99 |
ignore-fully-untyped = true |
| 100 |
|
| 101 |
[tool.ruff.lint.pylint] |
| 102 |
max-args = 5 |
| 103 |
max-branches = 12 |
| 104 |
max-locals = 15 |
| 105 |
max-statements = 50 |
| 106 |
|
| 107 |
[tool.ruff.format] |
| 108 |
quote-style = "double" |
| 109 |
indent-style = "space" |
| 110 |
skip-magic-trailing-comma = false |
| 111 |
line-ending = "auto" |
| 112 |
preview = false |
| 113 |
docstring-code-format = true |
| 114 |
|
| 115 |
[tool.mypy] |
| 116 |
|
| 117 |
python_version = "3.11" |
| 118 |
|
| 119 |
ignore_missing_imports = true |
| 120 |
follow_imports = "silent" |
| 121 |
|
| 122 |
no_implicit_optional = false |
| 123 |
strict_optional = false |
| 124 |
|
| 125 |
warn_unused_configs = true |
| 126 |
warn_redundant_casts = true |
| 127 |
warn_unused_ignores = true |
| 128 |
warn_no_return = true |
| 129 |
warn_unreachable = true |
| 130 |
warn_return_any = false |
| 131 |
|
| 132 |
check_untyped_defs = false |
| 133 |
disallow_untyped_calls = false |
| 134 |
disallow_untyped_defs = false |
| 135 |
disallow_incomplete_defs = false |
| 136 |
disallow_untyped_decorators = false |
| 137 |
|
| 138 |
disallow_subclassing_any = false |
| 139 |
disallow_any_unimported = false |
| 140 |
disallow_any_expr = false |
| 141 |
disallow_any_decorated = false |
| 142 |
disallow_any_explicit = false |
| 143 |
disallow_any_generics = false |
| 144 |
|
| 145 |
allow_untyped_globals = true |
| 146 |
allow_redefinition = true |
| 147 |
local_partial_types = false |
| 148 |
implicit_reexport = true |
| 149 |
strict_equality = true |
| 150 |
|
| 151 |
show_error_context = false |
| 152 |
show_column_numbers = false |
| 153 |
show_error_codes = true |
| 154 |
exclude = ["docs", "test", "tests"] |
| 155 |
|
| 156 |
[tool.pytest.ini_options] |
| 157 |
pythonpath = "." |