mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-02 20:26:10 +01:00
chore: set up flake8, isort and black with pre-commit
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
[settings]
|
||||||
|
profile = black
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
repos:
|
||||||
|
- repo: https://github.com/PyCQA/flake8
|
||||||
|
rev: 6.0.0
|
||||||
|
hooks:
|
||||||
|
- id: flake8
|
||||||
|
|
||||||
|
- repo: https://github.com/PyCQA/isort
|
||||||
|
rev: 5.12.0
|
||||||
|
hooks:
|
||||||
|
- id: isort
|
||||||
|
|
||||||
|
- repo: https://github.com/ambv/black
|
||||||
|
rev: 23.3.0
|
||||||
|
hooks:
|
||||||
|
- id: black
|
||||||
@@ -1,6 +1,13 @@
|
|||||||
# Tiny Tapeout tools
|
# Tiny Tapeout tools
|
||||||
|
|
||||||
Tools used mostly by the Tiny Tapeout github actions
|
Tools used mostly by the Tiny Tapeout GitHub Actions
|
||||||
|
|
||||||
|
## Setup
|
||||||
|
|
||||||
|
```
|
||||||
|
pip install -r requirements.txt
|
||||||
|
pre-commit install
|
||||||
|
```
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
flake8 --ignore E203,E123,E501,E221,E401,W605 configure.py project.py tt_tool.py orders.py documentation.py caravel.py git_utils.py
|
|
||||||
@@ -29,3 +29,4 @@ webencodings==0.5.1
|
|||||||
yowasp-runtime==1.22
|
yowasp-runtime==1.22
|
||||||
yowasp-yosys==0.30.0.0.post538
|
yowasp-yosys==0.30.0.0.post538
|
||||||
zipp==3.15.0
|
zipp==3.15.0
|
||||||
|
pre-commit==3.4.0
|
||||||
|
|||||||
Reference in New Issue
Block a user