Skip to content
Permalink
6acb5e9a91
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
@nytelife26
Latest commit 9ed69f0 Mar 13, 2024 History
* chore: relocate py broker

* lint: apply ruff format

* fix: update module references

* feat(broker): add base mqtt packets

* chore(broker): add package init

* chore(broker): move broker -> cpp-broker to resolve module conflict

* chore(broker): make py-broker main broker

* style(broker): variable_header -> var_header

* ci(ruff): remove COM812 warning

Note that ruff's format feature does this already, so the check rule can be ignored.

* feat: add base and websocket adaptors

* feat: add stream adaptors

* Works... just not on the included hivemq instance, returns bad cred error

* Ignore last, THE BLEEDIN' CONNECT FUNCTION IS BROKEN.
Turns out the res code 4 is for non conn OR bad cred...
I hate contextual res codes

* Commiting so I can switch Branches

* feat: implement buffer backport

* feat: add codec helpers

* feat: add to_stream and from_stream for packet

Co-authored-by: Bertie Emberton (embertonb) <embertonb@coventry.ac.uk>
2 contributors

Users who have contributed to this file

@nytelife26 @embertonb
67 lines (60 sloc) 1.31 KB
line-length = 80
target-version = "py38"
indent-width = 4
exclude = [
"broker"
]
[lint]
select = [
"A", # flake8-builtins
"ANN", # flake8-annotations
"ARG", # flake8-unused-arguments
"B", # Bugbear
"C",
"COM", # flake8-commas
# "CPY", # flake8-copyright
"C4", # flake8-comprehensions
"DTZ", # flake8-datetimez
"D", # pydocstyle
"E", # pycodestyle errors
# "ERA", # eradicate commented out code
"F", # pyflakes
"FA", # flake8-future-annotations
"FBT", # boolean traps
"FLY", # flynt
"FURB", # refurb
"G", # flake8-logging-format
"I", # incomplete isort
"INP", # flake8-no-pep420
"LOG", # flake8-logging
"N", # naming
"NPY", # NumPy-specific rules
"PD", # pandas-vet
"PERF", # Perflint
"PL", # Pylint
"PTH", # flake8-use-pathlib
"PYI", # flake8-pyi
"RET", # flake8-return
"RUF", # Ruff-specific rules
"S", # bandit, security
"SLF", # flake8-self
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
"TCH", # flake8-type-checking
"T10", # flake8-print
"UP", # pyupgrade
"W", # pycodestyle warnings
"YTT", # flake8-2020
]
ignore = ["D203", "D212", "COM812"]
preview = true
[lint.per-file-ignores]
[lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 11
[lint.isort]
[lint.pyupgrade]
keep-runtime-typing = true
[format]
# per default like Black
#preview = true