mirror of https://github.com/commaai/openpilot.git
Car ports: update PR template (#23996)
* update text for docs generator
* use docs.py
* Update .github/pull_request_template.md
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 99c02bdd29
This commit is contained in:
parent
fe6209bd8c
commit
fbe4588771
|
@ -22,7 +22,7 @@ Route: [a route with the bug fix]
|
|||
<!--- ***** Template: Car port *****
|
||||
|
||||
**Checklist**
|
||||
- [ ] added to docs/CARS.md
|
||||
- [ ] added entry to CarInfo in selfdrive/car/*/values.py and ran `selfdrive/car/docs.py` to generate new docs
|
||||
- [ ] test route added to [routes.py](https://github.com/commaai/openpilot/blob/master/selfdrive/car/tests/routes.py)
|
||||
- [ ] route with openpilot:
|
||||
- [ ] route with stock system:
|
||||
|
|
|
@ -1,15 +1,13 @@
|
|||
#!/usr/bin/env python3
|
||||
import os
|
||||
from collections import Counter
|
||||
from pprint import pprint
|
||||
|
||||
from common.basedir import BASEDIR
|
||||
from selfdrive.car.docs import get_tier_car_rows
|
||||
|
||||
with open(os.path.join(BASEDIR, "docs/CARS.md")) as f:
|
||||
lines = f.readlines()
|
||||
cars = [l for l in lines if l.strip().startswith("|") and l.strip().endswith("|") and
|
||||
"Make" not in l and any(c.isalpha() for c in l)]
|
||||
if __name__ == "__main__":
|
||||
tiers = list(get_tier_car_rows())
|
||||
cars = [car for tier_cars in tiers for car in tier_cars[1]]
|
||||
|
||||
make_count = Counter(l.split('|')[1].split('|')[0].strip() for l in cars)
|
||||
print("\n", "*"*20, len(cars), "total", "*"*20, "\n")
|
||||
make_count = Counter(l[0] for l in cars)
|
||||
print("\n", "*" * 20, len(cars), "total", "*" * 20, "\n")
|
||||
pprint(make_count)
|
||||
|
|
Loading…
Reference in New Issue