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
Copy file name to clipboardExpand all lines: .pre-commit-config.yaml
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -198,12 +198,12 @@ repos:
198
198
description: Black is the uncompromising Python code formatter. By using it, you agree to cede control over minutiae of hand-formatting. In return, Black gives you speed, determinism, and freedom from pycodestyle nagging about formatting
199
199
language_version: python3
200
200
args: ['--line-length=88']
201
-
#- repo: https://github.com/PyCQA/bandit
202
-
# rev: 1.8.6
203
-
# hooks:
204
-
# - id: bandit
205
-
# name: A security linter from PyCQA
206
-
# description: Bandit is a tool designed to find common security issues in Python code
207
-
#args: ["-c", "bandit.yaml"]
208
-
# files: \.py$
209
-
# pass_filenames: false
201
+
- repo: https://github.com/PyCQA/bandit
202
+
rev: 1.8.6
203
+
hooks:
204
+
- id: bandit
205
+
name: A security linter from PyCQA
206
+
description: Bandit is a tool designed to find common security issues in Python code
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+24-11Lines changed: 24 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,31 +112,37 @@ Our configuration is already in the repo: [dprint.json](./dprint.json)
112
112
113
113
#### 🧪 Setting Up pre-commit
114
114
115
-
Used to enforce newline at end of files and OS-specific line endings.
115
+
We use [pre-commit](https://pre-commit.com/)to automatically check your code for common issues, like missing end-of-file newlines and inconsistent line endings. This keeps our project clean and easy for everyone to work on.
116
116
117
-
**Install (requires Python):**
117
+
**How to install (requires Python):**
118
118
119
119
```bash
120
-
pip install pre-commit
120
+
python -m pip install --user pre-commit
121
121
```
122
122
123
-
**Activate pre-commit hooks:**
123
+
**Set up pre-commit hooks for this project:**
124
124
125
125
```bash
126
126
pre-commit install
127
127
```
128
128
129
-
**Run manually (optional):**
129
+
This will make pre-commit run its checks every time you make a commit.
130
+
**Running checks manually (optional):**
130
131
131
132
```bash
132
133
pre-commit run --all-files
133
134
```
134
135
136
+
This command runs all configured pre-commit hooks against all files in the repository.
137
+
For more info, visit the [pre-commit website](https://pre-commit.com/).
138
+
135
139
---
136
140
137
141
### 5. 📝 Commit Changes
138
142
139
-
Use descriptive commit messages that clearly state the purpose of your changes.
143
+
Use meaningful and clear commit messages that describe the purpose of your changes. This helps maintain a clean and understandable project history.
0 commit comments