Skip to content

Commit

Permalink
chore: set up flake8, isort and black with pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
urish committed Sep 21, 2023
1 parent 3f8a476 commit 5725713
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[flake8]
extend-ignore = E203,E501,F541
2 changes: 2 additions & 0 deletions .isort.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[settings]
profile = black
15 changes: 15 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
1 change: 0 additions & 1 deletion lint.sh

This file was deleted.

1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5725713

Please sign in to comment.