Ewout ter Hoeven
55390d273f
Convert format strings strings to f-strings ( #23241 )
...
* Convert all text strings to f-strings
Reformats all the text from the old "%-formatted" and .format(...) format to the newer f-string format, as defined in PEP 498. This requires Python 3.6+.
Flynt 0.69 was used to reformat the strings. 120 f-strings were created in 51 files.
F-strings are in general more readable, concise and performant. See also: https://www.python.org/dev/peps/pep-0498/#rationale
* revert pyextra changes
* revert ublox.py
Co-authored-by: Willem Melching <willem.melching@gmail.com>
3 years ago
Adeeb Shihadeh
13b4ff504d
selfdrive/version: remove one unnecessary write to .git/ ( #23183 )
3 years ago
Shane Smiskol
b745a14ff7
version.py: make function names more clear ( #23216 )
...
* rename a few version functions
* and is_prebuilt
* and some formatting 😊
3 years ago
Willem Melching
f7c46c6949
Do not run code on version.py import ( #23063 )
...
* Do not run code on version.py import
* fix athena
3 years ago
Adeeb Shihadeh
a19738cba8
version.py: set terms and training version
4 years ago
Adeeb Shihadeh
116bb0b524
update tested branches
4 years ago
Greg Hogan
ea0f7e2797
athena: version endpoint ( #21045 )
...
* athena: version endpoint
* get_version function
* more explicit version validation
4 years ago
Willem Melching
f3db94a0c4
Linux tombstones: add stacktrace and upload ( #19737 )
...
* Add stacktrace to tombstones
* make sentry output prettier
* Refactor
* Generate upload filename
* Actually move file
* Fix spaces
* copy and upload
* dont delete just yet
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Adeeb Shihadeh
0040ac987a
add type hints to selfdrive/version.py
5 years ago
Adeeb Shihadeh
0394b8b921
fix get_git_remote not returning a value
5 years ago
Willem Melching
c3a4558026
Don't check dirty on prebuilt release ( #2014 )
...
* dont check dirty on prebuilt release
* cleanup
* Command cleanup
* Only log dirty comma branch
* Less whitespace
* Consistentcy
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
5 years ago
Adeeb Shihadeh
ede5b632b5
fix tested branch detection
5 years ago
Adeeb Shihadeh
ccf6b80c7e
Cleanup startup event handling ( #1748 )
...
* cleanup startup event
* always show permanent
* lowest
* update refs
5 years ago
Adeeb
367155168a
Update Flake8 config ( #1624 )
...
* update flake8 checks
* add E502
* no whitespace warnings
* fix violations
* no W391
Co-authored-by: Jason Young <jason@comma.ai>
5 years ago
Willem Melching
4695b2daa9
default values in version.py, fixes #1187
5 years ago
Willem Melching
c770f54103
Fix dirty files reporting
5 years ago
Willem Melching
1de0b9c233
Fix version.py in case of no branch
5 years ago
Willem Melching
b552a627e1
cleanup version.py
5 years ago
George Hotz
2f9379a139
selfdrive/*.py
5 years ago