https://github.com/architrixs/pre-commit-check-inline-styles
This hook checks for inline styles in HTML files.
https://github.com/architrixs/pre-commit-check-inline-styles
Last synced: 17 days ago
JSON representation
This hook checks for inline styles in HTML files.
- Host: GitHub
- URL: https://github.com/architrixs/pre-commit-check-inline-styles
- Owner: Architrixs
- License: gpl-3.0
- Created: 2024-06-20T13:02:31.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-26T07:30:00.000Z (about 2 years ago)
- Last Synced: 2026-06-10T22:28:21.603Z (23 days ago)
- Language: Python
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pre-commit-check-inline-styles
This hook checks for inline styles in HTML files.
## Using pre-commit-hooks with pre-commit
Add this to your .pre-commit-config.yaml
```
repos:
- repo: https://github.com/architrixs/pre-commit-check-inline-styles
rev: 1.1.0 # Use the appropriate tag
hooks:
- id: check-inline-styles
args: [--warn-only]
verbose: true
```
### Usage:
To check for inline styles in HTML files:
```bash
check-inline-styles [--warn-only] [file_or_directory ...]
--warn-only: Only warn about inline styles without modifying files and exit with a success status.
```