Commit graph

18 commits

Author SHA1 Message Date
Jonas L
d55e58e416
chore: auto generate requirements.txt (#1651)
- force LC_ALL for the sort command
2022-02-28 20:02:01 +02:00
jo
9eab3b8d17 chore: update pre-commit to handle js/ts/css files 2022-02-10 08:17:02 +01:00
jo
89c845b269 chore: upgrade black pre-commit hook 2022-02-09 17:24:36 +02:00
jo
32cb67806a chore: add pyupgrade pre-commit hook
- add --py3-plus flag to pyupgrade hook
- add --py36-plus flag to pyupgrade hook
2022-01-27 10:37:48 +02:00
jo
21aaf9bca1 chore: upgrade pre-commit hooks 2022-01-27 10:37:48 +02:00
Jonas L
30b3470a06
Better format enforcing (#1391)
* Add shared python format-check target

* Add .format-check to api lint target

* Format api code with makefile format target

* Add .format-check to tools lint target

* Add .format-check to analyzer lint target

* Format analyzer code with makefile format target

* Add .format-check to celery lint target

* Add .format-check to api_client lint target

* Format api_client code with makefile format target

* Add .format-check to playout lint target

* Run CI linting in parallel

* Disable isort in pre-commit
2021-10-17 16:24:37 +02:00
jo
3a7d450191 Enable pre-commit on legacy code 2021-10-12 11:16:43 +02:00
jo
c70cd8e587 Fix duplicate check-yaml entry 2021-10-12 11:16:43 +02:00
jo
c4c89eae19 Fix paths after legacy rename 2021-10-11 13:43:39 +02:00
jo
1742f91a34 Cleanup pre-commit lint task 2021-09-10 13:34:26 +02:00
jo
6d8e6e15cf Add extra builtin dictionnary for codespell 2021-08-17 22:49:55 +02:00
jo
7fbbce0032 Upgrade pre-commit hooks 2021-08-17 22:45:24 +02:00
jo
01fbd1e8b9 Add isort pre-commit hook
Sort import statement in python files

See https://github.com/PyCQA/isort
2021-06-05 00:39:35 +02:00
jo
b26de72704 Remove python encoding pragma 2021-06-05 00:39:23 +02:00
jo
813cbac60d Ignore python test naming for libretime api 2021-06-04 17:06:05 +02:00
jo
a3a4e83c48 temp: xDisable pylint 2021-06-04 17:06:05 +02:00
jo
225863d227 Set end of line to LF 2021-06-04 17:06:05 +02:00
jo
0cd499eee1 Add pre-commit setup
- Add pre-commit hooks
- Add github action to enforce pre-commit setup

For any hooks required for a 'sub project', for
instance the UI. It will be possible to create custom hooks,
and call some package scripts in the package.json file.

Fixes #1208
2021-06-04 17:04:53 +02:00