chore: set up flake8, isort and black with pre-commit

This commit is contained in:
Uri Shaked
2023-09-21 22:21:59 +03:00
parent 3f8a47659c
commit 5725713cbd
6 changed files with 28 additions and 2 deletions
+2
View File
@@ -0,0 +1,2 @@
[flake8]
extend-ignore = E203,E501,F541
+2
View File
@@ -0,0 +1,2 @@
[settings]
profile = black
+15
View File
@@ -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
+8 -1
View File
@@ -1,6 +1,13 @@
# 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
-1
View File
@@ -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
+1
View File
@@ -29,3 +29,4 @@ webencodings==0.5.1
yowasp-runtime==1.22
yowasp-yosys==0.30.0.0.post538
zipp==3.15.0
pre-commit==3.4.0