Ryan
aa9e635311
Add more type hinting ( #23595 )
...
* Add more type hinting.
* Revert joystick_alert changes.
* Add typing to statsd.
* Update selfdrive/statsd.py
* Update selfdrive/test/test_fingerprints.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com >
2022-01-21 15:11:16 -08:00
Ewout ter Hoeven
332f568a82
Pyupgrade 3.6: Update syntax with Python 3.6+ features ( #23305 )
...
Updated Python code with Python 3.6+ features:
- utf-8 encoding is now the default (PEP 3120)
- Replace list comprehensions by Generator Expressions (PEP 289)
- Replace yield loop by yield from (PEP 380)
- Remove the (object) subclass when defining a class
- Replace the IOError alias by OSError (PEP 3151)
- Define sets with curly braces {} instead of set()
- Remove "r" parameter from open function, which is default
Co-Authored-By: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com >
Co-Authored-By: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com >
Co-authored-by: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com >
Co-authored-by: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com >
2021-12-24 11:18:39 -08:00
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 >
2021-12-16 14:58:17 +01:00
Willem Melching
59accdd814
do not run on import
2021-10-26 14:49:51 +02:00
Adeeb Shihadeh
e5575a6a4c
Remove ignored CAN fingerprints ( #20994 )
...
* VW is all FW
* fix test
* toyota
* honda
* hyundai
* remove IGNORED_FINGERPRINTS
* toyota
2021-05-24 13:50:10 -07:00
Arne Schwarck
3db63b781d
Do we still need this? ( #1290 )
...
Tesla is not supported so do we still need this here as VW uses 840 in their FP
2020-03-29 12:25:15 -07:00
rbiasini
093d6cb5ff
Fingerprint cleanup ( #1231 )
...
* upd panda and opendbc
* Delete unnecessary fingerprints, fix RavH occasional test issue, re-enable test error for overlapping fingerprints within the same candidate
2020-03-11 14:32:03 -07:00
Willem Melching
6eca88e9bc
ignore IGNORED_FINGERPRINTS in fingerprint test
2020-02-27 13:14:59 -08:00
Willem Melching
f26f085a36
Add fingerprint for 2019 Chrysler Pacifica Hybrid
2020-02-14 15:35:39 -08:00
Willem Melching
e2253b072e
fix fingerprint test
2020-02-13 16:53:41 -08:00
George Hotz
c0bfbc12c7
selfdrive/test
2020-01-17 11:16:14 -08:00