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: .pylintrc
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,11 @@ jobs=1
22
22
23
23
# List of plugins (as comma separated values of python modules names) to load,
24
24
# usually to register additional checkers.
25
-
load-plugins=pylint_quotes
25
+
load-plugins=pylint_quotes,pylintfileheader
26
+
27
+
# Option for the pylintfileheader plugin
28
+
file-header=# ---------------------------------------------------------------------------------------------\n# Copyright \(c\) Leo Hanisch. All rights reserved.\n# Licensed under the MIT License. See LICENSE.txt in the project root for license information.\n# ---------------------------------------------------------------------------------------------\n
@@ -31,22 +31,24 @@ When the `file-header` setting is omitted, pylint will pass.
31
31
[MASTER]
32
32
load-plugins=pylintfileheader
33
33
34
-
file-header=# -----------------------------------------------\n# Copyright (c) Leo Hanisch. All rights reserved.\n# -----------------------------------------------
@@ -64,7 +66,7 @@ When the `file-header` setting is omitted, pylint will pass.
64
66
```
65
67
Using config file /path/to/your/.pylintrc
66
68
************* Module invalid_example
67
-
C: 1, 0: File header should match regex "# -----------------------------------------------\n# Copyright (c) Leo Hanisch. All rights reserved.\n# -----------------------------------------------" (invalid-file-header)
69
+
C: 1, 0: File header should match regex "# -----------\n# lorem ipsum\n# -----------\ (invalid-file-header)
0 commit comments