Commit Graph

13 Commits

Author SHA1 Message Date
Cameron Clough 0c7d5f11d7
use pyupgrade to update syntax (#1889) 2024-02-24 13:56:28 -08:00
Eric Brown 0bcaa73d2a
Sort output of can_bit_transition script numerically (#1785) 2023-12-29 11:32:37 -08:00
Louie Lu a88fe8c883
examples: Make can_bit_transition.py support can_logger.py (#1198)
* Add Time field to can_logger.py

* Update can_bit_transition to support can_logger format

* Fix csv opening

Using `rb` to open csv file will throw the exception:

  _csv.Error: iterator should return strings,
              not bytes (the file should be opened in text mode)

Fix it with `r` and `newline=''`
2023-12-10 11:25:25 -08:00
kyle zunich 671b5ae2d6
Update example scripts to support canfd (#1059) 2022-09-02 10:45:43 -07:00
Willem Melching e0a706e4f0
Stricter pylint (#550)
* stricter pylint

* Add as argument
2020-06-02 16:27:07 -07:00
Adeeb d7f7b14118
Enable almost all Flake8 checks (#548)
* fix W391

* E262

* E703

* W293

* some E

* E231

* some more E

* E225

* more E

* E252

* no tabs

* more tabs

* E701

* uds.py

* almost all of them

* only e265 left

* not sure why this is triggering on commented out code

* ignore esptool
2020-06-01 01:49:26 -07:00
rbiasini fce38a91d7
Linter python (#299)
* Added pyflakes and Pylint for python

* Actually run linter in CI

* some simple pyflakes changes

* Add flake8 to panda reqs for linter test

* flake8 errors are fixed

* run flake8 in regression tests

* meant to run flake8

* hack to ignore unused import

* bug

* fix bugs in tucan_loopback

* Another fix by using set_safety_mode

* added pylintrc file

* more fixes and enabled pylint as well

* Fix pylint in circleci

* added linter to readme
2019-10-15 14:03:31 -07:00
Riccardo 2dc34096a0 2to3 applied 2019-09-24 22:33:46 -07:00
Riccardo dbc248027e Fix all the prints with 2to3, some need to be undo 2019-09-24 18:02:15 -07:00
Riccardo 5a7aeba0f5 xrange is gone 2019-09-24 17:56:55 -07:00
Riccardo 1e2412a297 env python -> env python3 2019-09-24 17:50:53 -07:00
adhintz de2b19eebe add support for multiple buses to can_unique and can_bittransition
output data in sorted order.
2018-03-09 19:36:04 -08:00
Greg Hogan 858d150e6b added script to find bits that transition from 0 to 1 2018-03-07 13:57:03 -06:00