Commit Graph

27 Commits

Author SHA1 Message Date
Adeeb Shihadeh
35ff65121e pre-commit: add codespell (#25571)
old-commit-hash: 6590fb2b93baedb2e1c5267b4f191f8e20fcd1d2
2022-08-30 11:20:55 -07:00
Ewout ter Hoeven
f206ebd054 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>
old-commit-hash: 332f568a8241fba9459cb70c76840b9670e6993a
2021-12-24 11:18:39 -08:00
Ewout ter Hoeven
a962365292 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>
old-commit-hash: 55390d273f36f49da3896e687ac5530f40c1d150
2021-12-16 14:58:17 +01:00
grekiki
9e4cc1f7ff Python: Replace more lists with generators (#23116)
* Replace lists with generators v2

* Replace set with {}

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Replace more set() with {}

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 6951b3271d1770297cb6bd53878463035ec0bf43
2021-12-03 22:57:19 -08:00
grekiki
3ab7943f97 Replace list by generator (#23077)
old-commit-hash: 91f87e367527c607724711914142851bf0ea7238
2021-11-30 14:15:42 +01:00
grekiki
5b2511162a replace list comprehensions with generators (#23037)
old-commit-hash: 68c1a666a03a381768673a1b29a73f9131f0ed62
2021-11-25 15:53:11 -08:00
arfy slowy
63b3d6024b fix: spelling typos (#21861)
* fix: typo spelling grammar

* revert

* Update selfdrive/locationd/calibrationd.py

* more revert

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: d74def61f88937302f7423eea67895d5f4c596b5
2021-08-05 12:05:49 -07:00
Adeeb Shihadeh
89720ef6ce more apk cleanup (#20646)
* bump cereal

* cleanup

* little more

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 58dabdda00eae882b2290f7edd2d21dff81e3528
2021-04-10 14:53:51 -07:00
Willem Melching
c0098cec09 Manager cleanup (#20231)
* move manager in folder

* inital refactor

* call start

* small cleanup

* add comments

* use self.signal()

* order shouldnt matter

* newlines

* add helpers

* newlines

* add process config

* split out build part of manager

* this should fix most tests

* no sensord on pc

* dont start athena

* remove comment

* fix old athena test

* fix inject model

* fix test car models

* should be not none

* fix helpers exitcode

* ignore manage_athenad

* Use time.monotonic()

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* combine init, remove spinner

* move manager test

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 5a3b51130649356b14b24e3c82e014b3a0be95a8
2021-03-05 11:03:23 +01:00
Adeeb Shihadeh
3b2d64fddb make android logcat exit cleanly (#19666)
* make android logcat exit cleanly

* clean up cpu usage script

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: a399ec530d5cbd7fbc842881af48559176a10568
2021-01-05 15:10:55 -08:00
Adeeb Shihadeh
ea90a1e391 add offroad to cpu usage script
old-commit-hash: 38a23a55ec8b27851e4f5eb2d37717c7ada63053
2020-10-06 21:12:38 -07:00
Adeeb Shihadeh
7bd98df410 add android procs to cpu usage sript
old-commit-hash: 33ad9d67eafa13f1c608368136a37e0a08a5bb68
2020-09-16 15:47:44 -07:00
Adeeb Shihadeh
51c3619f99 add locationd, paramsd, dmonitoringd to CPU usage script
old-commit-hash: 4658df7a668fc5565d2f4665523586ffdc8a5373
2020-07-30 15:28:58 -07:00
Adeeb Shihadeh
b38c33cc47 Boardd loopback test (#1840)
* start boardd loopback test

* let's try this in CI

* fix jenkinsfile

* remove old

* rename

* check msgs

* should be reliable now

* send more
old-commit-hash: 3ab0b4965663bfae88885c503da0c7de2af37f74
2020-07-08 19:42:03 -07:00
Willem Melching
a56e2b01f8 Make pylint more strict (#1626)
* make pylint more strict

* cleanup in progress

* done cleaning up

* no opendbc
old-commit-hash: 843a64c72fb94397a1edf814fa66044c8d92acbf
2020-06-02 16:29:32 -07:00
Adeeb Shihadeh
8b3418b0f9 enable flake8 E251: unexpected spaces around keyword / parameter equals
old-commit-hash: ebed2d1dcc53f092696b61fd1e004045c9bde893
2020-05-31 17:34:47 -07:00
Adeeb Shihadeh
be0b43f339 enable flake8 E231: missing whitespace after comma
old-commit-hash: efd5dffb1e727c70065fdbe7499ec9e009dfd282
2020-05-31 12:49:11 -07:00
Willem Melching
2b60ee9531 Run mypy commit hook (#1591)
* run mypy commit hook

* fix mypy errors
old-commit-hash: 3d08dcc3b27936cb14c0eae63605be9a6c077380
2020-05-28 15:05:04 -07:00
ZwX1616
2ad685b194 dmonitoringd (#1016)
old-commit-hash: 6322a275d6d6f4f638706cce95421517306940cc
2020-01-30 19:12:44 -08:00
George Hotz
2048a6e3d3 selfdrive/debug
old-commit-hash: f467642a1cd4b47d70a0fe3ae894e11350f6e28c
2020-01-17 11:23:21 -08:00
George Hotz
81dd5a50cf root commit
old-commit-hash: 6c33a5c1f3878e1d8c8a9db600dd44d188f02c87
2020-01-17 10:02:52 -08:00
Vehicle Researcher
99b637c7ce openpilot v0.7 release
old-commit-hash: c025b96e8a15640ee4d6e4d513fada6ed101afe5
2019-12-13 13:03:08 -08:00
Vehicle Researcher
89d1d84c70 openpilot v0.6.5 release
old-commit-hash: cf80f7a28bc737f50e096b21dea2dd2d6d4a1621
2019-10-09 18:43:53 +00:00
Vehicle Researcher
9abcfabc5f openpilot v0.6 release
old-commit-hash: 8a9ed94f5f33faf282b1918ebe2c37f06cef74e6
2019-06-28 21:11:30 +00:00
Vehicle Researcher
e47a2e6e30 openpilot v0.5.13 release
old-commit-hash: dd34ccfe288ebda8e2568cf550994ae890379f45
2019-06-06 04:38:45 +00:00
Vehicle Researcher
0932b367bd openpilot v0.5.12 release
old-commit-hash: 3f9059fea886f1fa3b0c19a62a981d891dcc84eb
2019-05-16 13:20:29 -07:00
Vehicle Researcher
83dfc3ca1f openpilot v0.5.11 release
old-commit-hash: 2f92d577f995ff6ae1945ef6b89df3cb69b92999
2019-04-23 01:41:19 +00:00