Skip to content

Commit 55153bd

Browse files
committed
Initial commit of base configuration plus mqtt_as.py.
0 parents  commit 55153bd

9 files changed

+878
-0
lines changed

.gitignore

Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
2+
# Created by https://www.gitignore.io/api/python,visualstudiocode
3+
# Edit at https://www.gitignore.io/?templates=python,visualstudiocode
4+
5+
### Python ###
6+
# Byte-compiled / optimized / DLL files
7+
__pycache__/
8+
*.py[cod]
9+
*$py.class
10+
11+
# C extensions
12+
*.so
13+
14+
# Distribution / packaging
15+
.Python
16+
build/
17+
develop-eggs/
18+
dist/
19+
downloads/
20+
eggs/
21+
.eggs/
22+
lib/
23+
lib64/
24+
parts/
25+
sdist/
26+
var/
27+
wheels/
28+
pip-wheel-metadata/
29+
share/python-wheels/
30+
*.egg-info/
31+
.installed.cfg
32+
*.egg
33+
MANIFEST
34+
35+
# PyInstaller
36+
# Usually these files are written by a python script from a template
37+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
38+
*.manifest
39+
*.spec
40+
41+
# Installer logs
42+
pip-log.txt
43+
pip-delete-this-directory.txt
44+
45+
# Unit test / coverage reports
46+
htmlcov/
47+
.tox/
48+
.nox/
49+
.coverage
50+
.coverage.*
51+
.cache
52+
nosetests.xml
53+
coverage.xml
54+
*.cover
55+
.hypothesis/
56+
.pytest_cache/
57+
58+
# Translations
59+
*.mo
60+
*.pot
61+
62+
# Django stuff:
63+
*.log
64+
local_settings.py
65+
db.sqlite3
66+
db.sqlite3-journal
67+
68+
# Flask stuff:
69+
instance/
70+
.webassets-cache
71+
72+
# Scrapy stuff:
73+
.scrapy
74+
75+
# Sphinx documentation
76+
docs/_build/
77+
78+
# PyBuilder
79+
target/
80+
81+
# Jupyter Notebook
82+
.ipynb_checkpoints
83+
84+
# IPython
85+
profile_default/
86+
ipython_config.py
87+
88+
# pyenv
89+
.python-version
90+
91+
# pipenv
92+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
94+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
95+
# install all needed dependencies.
96+
#Pipfile.lock
97+
98+
# celery beat schedule file
99+
celerybeat-schedule
100+
101+
# SageMath parsed files
102+
*.sage.py
103+
104+
# Environments
105+
.env
106+
.venv
107+
env/
108+
venv/
109+
ENV/
110+
env.bak/
111+
venv.bak/
112+
113+
# Spyder project settings
114+
.spyderproject
115+
.spyproject
116+
117+
# Rope project settings
118+
.ropeproject
119+
120+
# mkdocs documentation
121+
/site
122+
123+
# mypy
124+
.mypy_cache/
125+
.dmypy.json
126+
dmypy.json
127+
128+
# Pyre type checker
129+
.pyre/
130+
131+
### VisualStudioCode ###
132+
.vscode/*
133+
!.vscode/settings.json
134+
!.vscode/tasks.json
135+
!.vscode/launch.json
136+
!.vscode/extensions.json
137+
138+
### VisualStudioCode Patch ###
139+
# Ignore all local history of files
140+
.history
141+
142+
# End of https://www.gitignore.io/api/python,visualstudiocode
143+
144+
### Micropy Cli ###
145+
.micropy/
146+
!micropy.json
147+
!src/lib
148+
149+
src/config.py

.pylintrc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[MASTER]
2+
# Loaded Stubs: esp32-micropython-1.15.0
3+
init-hook='import sys;sys.path[1:1]=["src/lib",".micropy/BradenM-micropy-stubs-371f66d/frozen", ".micropy/BradenM-micropy-stubs-4f5a52a/frozen", ".micropy/BradenM-micropy-stubs-371f66d/stubs", ".micropy/mqtt", ]'
4+
5+
[MESSAGES CONTROL]
6+
# Only show warnings with the listed confidence levels. Leave empty to show
7+
# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED.
8+
confidence=
9+
10+
# Disable the message, report, category or checker with the given id(s). You
11+
# can either give multiple identifiers separated by comma (,) or put this
12+
# option multiple times (only on the command line, not in the configuration
13+
# file where it should appear only once). You can also use "--disable=all" to
14+
# disable everything first and then reenable specific checks. For example, if
15+
# you want to run only the similarities checker, you can use "--disable=all
16+
# --enable=similarities". If you want to run only the classes checker, but have
17+
# no Warning level messages displayed, use "--disable=all --enable=classes
18+
# --disable=W".
19+
20+
disable = missing-docstring, line-too-long, trailing-newlines, broad-except, logging-format-interpolation, invalid-name, empty-docstring,
21+
no-method-argument, assignment-from-no-return, too-many-function-args, unexpected-keyword-arg
22+
# the 2nd line deals with the limited information in the generated stubs.

.vscode/extensions.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3+
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4+
// List of extensions which should be recommended for users of this workspace.
5+
"recommendations": [
6+
"ms-python.python", // micropy-cli: required for vscode micropython integrations
7+
"VisualStudioExptTeam.vscodeintellicode" // micropy-cli: optional for advanced intellisense
8+
]
9+
}

.vscode/settings.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"python.linting.enabled": true,
3+
"python.jediEnabled": false,
4+
5+
// Loaded Stubs: esp32-micropython-1.15.0
6+
"python.autoComplete.extraPaths": [".micropy/BradenM-micropy-stubs-371f66d/frozen", ".micropy/BradenM-micropy-stubs-4f5a52a/frozen", ".micropy/BradenM-micropy-stubs-371f66d/stubs", ".micropy/mqtt"],
7+
"python.autoComplete.typeshedPaths": [".micropy/BradenM-micropy-stubs-371f66d/frozen", ".micropy/BradenM-micropy-stubs-4f5a52a/frozen", ".micropy/BradenM-micropy-stubs-371f66d/stubs", ".micropy/mqtt"],
8+
"python.analysis.typeshedPaths": [".micropy/BradenM-micropy-stubs-371f66d/frozen", ".micropy/BradenM-micropy-stubs-4f5a52a/frozen", ".micropy/BradenM-micropy-stubs-371f66d/stubs", ".micropy/mqtt"],
9+
10+
"python.linting.pylintEnabled": true,
11+
"python.analysis.extraPaths": [
12+
".micropy/BradenM-micropy-stubs-371f66d/frozen",
13+
".micropy/BradenM-micropy-stubs-4f5a52a/frozen",
14+
".micropy/BradenM-micropy-stubs-371f66d/stubs",
15+
".micropy/mqtt"
16+
],
17+
"python.languageServer": "Microsoft"
18+
}

dev-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
micropy-cli

micropy.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "mqtt",
3+
"stubs": {
4+
"esp32-micropython-1.15.0": "1.3.9"
5+
},
6+
"dev-packages": {
7+
"micropy-cli": "*"
8+
},
9+
"packages": {},
10+
"config": {
11+
"vscode": true,
12+
"pylint": true
13+
}
14+
}

pymakr.conf

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"sync_folder": "src",
3+
"open_on_start": true,
4+
"safe_boot_on_upload": false,
5+
"py_ignore": [
6+
"pymakr.conf",
7+
".vscode",
8+
".gitignore",
9+
".git",
10+
"project.pymakr",
11+
"env",
12+
"venv",
13+
".python-version",
14+
".micropy/",
15+
"micropy.json"
16+
],
17+
"fast_upload": false
18+
}

requirements.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)