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
Pylint plugin to enforce consistent file/module header.
@@ -18,7 +17,7 @@ pip install pylintfileheader
18
17
## Configuration
19
18
20
19
Generate a `.pylintrc` file by executing `pylint --generate-rcfile`.
21
-
Then add `pylintfileheader` to the plugins to load and set the `file-header` option to the [regular expression](https://docs.python.org/3.7/library/re.html#regular-expression-syntax) that the file header should match.
20
+
Then add `pylintfileheader` to the plugins to load and set the `file-header` option to the [regular expression](https://docs.python.org/3/library/re.html#regular-expression-syntax) that the file header should match.
22
21
When the `file-header` setting is omitted, pylint will pass.
23
22
24
23
## Example
@@ -31,7 +30,7 @@ When the `file-header` setting is omitted, pylint will pass.
@@ -66,7 +65,7 @@ When the `file-header` setting is omitted, pylint will pass.
66
65
```
67
66
Using config file /path/to/your/.pylintrc
68
67
************* Module invalid_example
69
-
C: 1, 0: File header should match regex "# -----------\n# lorem ipsum\n# -----------\ (invalid-file-header)
68
+
C: 1, 0: File header should match regex "# -----------\n#[ \w]*\n# -----------" (invalid-file-header)
70
69
71
70
-----------------------------------
72
71
Your code has been rated at 8.57/10
@@ -78,5 +77,6 @@ If you found a bug or are missing a feature do not hesitate to [file an issue](h
78
77
Pull Requests are welcome!
79
78
80
79
## Support
80
+
81
81
When you like this package make sure to [star the repository](https://github.com/HaaLeo/pylint-file-header/stargazers). I am always looking for new ideas and feedback.
82
82
In addition, it is possible to [donate via paypal](https://www.paypal.me/LeoHanisch).
0 commit comments