Comments (3)
Agreed, that would be better.
Have you faced a case where the wrong encoding was used on writeback?
I guess this line makes it very likely to happen:
https://github.com/Lucas-C/pre-commit-hooks/blob/v1.2.0/pre_commit_hooks/insert_license.py#L233
from pre-commit-hooks.
Yes, I was faced with that.
from pre-commit-hooks.
I submitted #44 in order to implement this
from pre-commit-hooks.
Related Issues (20)
- Using pre-commit to insert a license header HOT 2
- Tabs are replaced in this binary string HOT 3
- Avoid space insertion when inserting licence HOT 7
- Failing test test_badopt HOT 6
- Dropped py2 in patch version? HOT 2
- Add LICENSE after "file header" for php HOT 1
- Newline is forced between license comment and code HOT 2
- split commit hooks for less dependencies
- insert-license hook ignores top-level files selected by `types` or `types_or` HOT 2
- add ignore-files argument to remove-crlf? HOT 2
- python-Levenshtein-wheels not available for python 3.10 HOT 6
- Possible incorrect formatting from remove tabs HOT 13
- insert_license - Only first year range is replaced in existing license HOT 6
- insert_license - Inserting new license with --use-current-year replaces start years in ranges HOT 3
- Matching multiple license headers? HOT 8
- Rename this repo? HOT 3
- insert-license should not add a LF at the end of the license header file if it does not have one, to prevent an ugly empty separator line HOT 2
- Ignore commit amend message files in .git when running forbid-tabs & co by default HOT 7
- CSS (single line comments) set `//` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pre-commit-hooks.