Skip to content

Commit 466398e

Browse files
committed
docs update and add autoflake
1 parent cb51226 commit 466398e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ repos:
2626
name: Linting-cli
2727
entry: bash -c 'cd cli && yarn lint-fix'
2828
language: system
29+
- repo: https://github.com/PyCQA/autoflake
30+
rev: v2.3.1
31+
hooks:
32+
- id: autoflake
33+
args: [--remove-all-unused-imports, --in-place]
2934
# black fixes code, so let it be at the last
3035
- repo: https://github.com/psf/black
3136
rev: 24.8.0

CONTRIBUTING.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ Please follow the existing code style and conventions used in the project. If yo
2424

2525
## Making Commits
2626

27-
1. Pre-commit should be installed as a dev dependency already. If not run the follwoing command from project root dir:
27+
1. Pre-commit should be installed as a dev dependency already. If not then Create a virual environment [venv](https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/#create-and-use-virtual-environments) or [pyenv](https://github.com/pyenv/pyenv?tab=readme-ov-file#installation) and run the follwoing command from project root dir:
28+
2829
```
29-
pip install backend/dev-requirements.txt --upgrade
30+
pip install -r backend/dev-requirements.txt --upgrade
3031
```
3132
Then install it:
3233
```

0 commit comments

Comments
 (0)