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
{{ message }}
This repository was archived by the owner on Jul 21, 2025. It is now read-only.
✨ Refactor: Clean up CI/CD workflows and pre-commit hooks (#5)
## 💌 Description
- Remove unused release draft workflow
- Update main release workflow
- Update contributing guidelines
- Improve README formatting
- Simplify and optimize pre-commit hook script
- Minor updates to project configuration
These changes aim to improve the project's development workflow by
removing unnecessary files, updating existing workflows, and optimizing
pre-commit hooks. The README file has also been updated to improve
readability and provide more information about the project.
## 🩹 Related issue
<!-- If your PR refers to a related issue, link it here. -->
Fixes: #
## 🏗️ Type of change
<!-- Mark with an `x` all the checkboxes that apply (like `[x]`) -->
- [ ] 📚 Examples / docs / tutorials / dependencies update
- [ ] 🐛 Bug fix (non-breaking change which fixes an issue)
- [ ] 🥂 Improvement (non-breaking change which improves an existing
feature)
- [ ] 🚀 New feature (non-breaking change which adds functionality)
- [ ] 💥 Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] 🔐 Security fix
- [ ] ⬆️ Dependencies update
## ✅ Checklist
<!-- Mark with an `x` all the checkboxes that apply (like `[x]`) -->
- [ ] I've read the
[`CODE_OF_CONDUCT.md`](https://github.com/DariuszPorowski/chatgpt-pre-commit-hooks/blob/main/CODE_OF_CONDUCT.md)
document.
- [ ] I've read the
[`CONTRIBUTING.md`](https://github.com/DariuszPorowski/chatgpt-pre-commit-hooks/blob/main/CONTRIBUTING.md)
guide.
- [ ] I've written tests for all new methods and classes that I created.
- [ ] I've written the docstring in Google format for all the methods
and classes that I used.
Copy file name to clipboardExpand all lines: README.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@ Pre-commit hooks collection that utilizes ChatGPT and OpenAI platform to validat
23
23
-[Arguments](#arguments)
24
24
-[`--env-prefix`](#--env-prefix)
25
25
-[Variables precedence](#variables-precedence)
26
+
-[💸 Payments](#-payments)
26
27
-[👥 Contributing](#-contributing)
27
28
-[📄 License](#-license)
28
29
@@ -173,7 +174,7 @@ repos:
173
174
- or include it in a `requirements.txt` file in your project:
174
175
175
176
```text
176
-
chatgpt-pre-commit-hooks~=0.1.0
177
+
chatgpt-pre-commit-hooks~=0.1.1
177
178
```
178
179
179
180
and run:
@@ -274,12 +275,21 @@ For instance, if your prefix is `personal`, then the environment variable must b
274
275
275
276
Example:
276
277
278
+
```shell
279
+
export PERSONAL__OPENAI_API_KEY="sk-xxxxxx"
280
+
export WORK__OPENAI_API_KEY="sk-xxxxxx"
281
+
```
282
+
277
283
### Variables precedence
278
284
279
285
1. hard-coded args, e.g. `--openai-max-tokens`
280
286
1. prefixed environment variable, e.g. `PERSONAL__OPENAI_MAX_TOKENS`
281
287
1. global environment variable, e.g. `OPENAI_MAX_TOKENS`
282
288
289
+
## 💸 Payments
290
+
291
+
Project by default uses `gpt-3.5-turbo` model because of [its lower cost](https://openai.com/pricing). You have to pay for your own OpenAI API requests.
292
+
283
293
## 👥 Contributing
284
294
285
295
Contributions to the project are very welcome! Please follow [Contributing Guide](https://github.com/DariuszPorowski/chatgpt-pre-commit-hooks/blob/main/CONTRIBUTING.md).
0 commit comments