-
Notifications
You must be signed in to change notification settings - Fork 487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor venv #1031
Merged
Merged
Refactor venv #1031
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
c248b69
Merge setup.cfg into pyproject.toml
xs5871 3f268a9
Use includes instead of excludes for black
xs5871 9128e5d
Remove pipenv dependency
xs5871 8a6d856
Keep spellcheck from searching hidden directories.
xs5871 91c1508
Remove the last non-english doc and simplify spellcheck search
xs5871 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,22 +1,88 @@ | ||
[project] | ||
name = 'kmk_firmware' | ||
dependencies = [] | ||
version = '0' | ||
requires-python = '>=3.10' | ||
|
||
[project.optional-dependencies] | ||
dev = [ | ||
'flake8==7.0.0', | ||
'flake8-black', | ||
'flake8-commas', | ||
'flake8-comprehensions', | ||
'flake8-isort', | ||
'flake8-pyproject', | ||
'flake8-quotes', | ||
] | ||
|
||
[tool.setuptools] | ||
packages = [] | ||
|
||
[tool.black] | ||
# since black refuses to allow single-quotes... see locked conversation at | ||
# https://github.com/psf/black/issues/594 | ||
skip-string-normalization = true | ||
# explicitly exclude user_keymaps from black formatting rules | ||
# because a visually-appealing keymap list will be flattened | ||
# by black into a much harder to understand format | ||
target-version = ['py36'] | ||
exclude = ''' | ||
include = ''' | ||
/( | ||
\.git | ||
| \.mypy_cache | ||
| \.tox | ||
| \.venv | ||
| \.pytest_cache | ||
| \.compiled | ||
| dist | ||
| build | ||
| docs | ||
| mnt | ||
)/ | ||
boards | ||
|kmk | ||
|tests | ||
|user_keymaps | ||
)/.*\.py | ||
''' | ||
|
||
[tool.flake8] | ||
filename = [ | ||
'./boards/*.py', | ||
'./kmk/*.py', | ||
'./tests/*.py', | ||
'./user_keymaps/*.py', | ||
] | ||
# match black expectations | ||
max-line-length = 88 | ||
|
||
# enforce single quotes | ||
docstring-quotes = "'''" | ||
multiline-quotes = "'''" | ||
|
||
extend-ignore = [ | ||
# manage trailing commas | ||
'C812', 'C813', | ||
# ignore: comment should start with '# ' | ||
'E262', | ||
# manage line lengths | ||
'E501', | ||
] | ||
|
||
per-file-ignores = [ | ||
# Allow misaligned array entries | ||
'boards/**/*.py: E131', | ||
'user_keymaps/**/*.py: E131', | ||
] | ||
|
||
[tool.isort] | ||
known_standard_library = [ | ||
'analogio', | ||
'bitbangio', | ||
'bleio', | ||
'board', | ||
'busio', | ||
'digitalio', | ||
'framebuf', | ||
'gc', | ||
'machine', | ||
'microcontroller', | ||
'micropython', | ||
'neopixel', | ||
'pulseio', | ||
'supervisor', | ||
'usb_hid' | ||
] | ||
profile = 'black' | ||
skip_glob = [ | ||
'!boards/*.py', | ||
'!kmk/*.py', | ||
'!tests/*.py', | ||
'!user_keymaps/*.py', | ||
] |
This file was deleted.
Oops, something went wrong.
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The lang paths could be removed here now that we've retired those paths.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was still one non-english doc hidden in
hardware
, that's why I didn't touch that part.It's removed now. The "hardware" part of KMK isn't maintained anyway (and imo shouldn't be part of the firmware repository).