Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,35 @@ commands =
python chirp/share/make_supported.py model_support.html
python tools/py3_driver_progress.py -o tests/Python3_Driver_Testing.md tests/py3_driver_testers.txt tests/model_stats.tsv
git diff --exit-code tests/Python3_Driver_Testing.md

[flake8]
# The default line length for Black is 88, as "90-ish" has been determined
# to optimally produce significantly shorter files without compromising the
# ability to do side-by-side comparisons on typical screen resolutions. See:
# https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#line-length
max_line_length = 88

# Tell Flake not to complain about "_" (the I18n function) not being defined
builtins = _
# VSCode users: If you still get an undefined variable error despite this
# declaration, it's not coming from Flake8. It's coming from pylance. You need
# this in your VSCode Settings to tell pylance to take a seat and let Flake8
# deal with this issue:
# "python.analysis.diagnosticSeverityOverrides": {
# "reportUndefinedVariable": "none"
# },

# E203 is not PEP8 compliant and conflicts with Black, per
# https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#slices
extend_ignore =
E203

exclude =
.git,
__pycache__,
.tox
build
dist
.eggs
docs/conf.py