You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: enhance pre-commit setup and correct installation instructions
- Add installation instructions for contributors to CONTRIBUTING.md
- Add pre-commit hooks setup guide to CONTRIBUTING.md
- Update package dependencies for pre-commit
- Integrate pyupgrade and apply to all files
- Update README to align installation instructions with setup.py
3.Install the package in editable mode with development dependencies:
25
+
```bash
26
+
pip install -e ".[dev]"
27
+
```
28
+
8
29
### Devcontainer
9
30
10
31
This project comes with a [convenient devcontainer](https://www.loom.com/share/a183c4a351ed4700a79476fedf08ab9b) that makes it easier to run tests and has black configured to run on save.
@@ -54,3 +75,25 @@ Before that, install the dependencies:
To ensure code quality and consistency, we use pre-commit hooks. Follow these steps to set up pre-commit in your development environment:
82
+
83
+
1. Install pre-commit:
84
+
```bash
85
+
pip install pre-commit
86
+
```
87
+
88
+
2. Install the git hook scripts:
89
+
```bash
90
+
pre-commit install
91
+
```
92
+
93
+
After installation, `pre-commit` will automatically run on git commit. The hooks perform checks and corrections related to code formatting, linting, and other rules as defined in the `.pre-commit-config.yaml` file.
94
+
95
+
Note: If you need to bypass pre-commit hooks temporarily, you can use the `--no-verify` flag:
0 commit comments