Update pylintrc
- Ignore some pylint errors only in CI, not locally - Set max line length to 80
This commit is contained in:
		
							parent
							
								
									f62f922733
								
							
						
					
					
						commit
						d55cb97dd2
					
				
					 2 changed files with 10 additions and 10 deletions
				
			
		
							
								
								
									
										11
									
								
								pylintrc
									
										
									
									
									
								
							
							
						
						
									
										11
									
								
								pylintrc
									
										
									
									
									
								
							| 
						 | 
					@ -51,15 +51,8 @@ confidence=
 | 
				
			||||||
# no Warning level messages displayed, use"--disable=all --enable=classes
 | 
					# no Warning level messages displayed, use"--disable=all --enable=classes
 | 
				
			||||||
# --disable=W"
 | 
					# --disable=W"
 | 
				
			||||||
# C0111 missing-docstring
 | 
					# C0111 missing-docstring
 | 
				
			||||||
# C0301 line too long
 | 
					 | 
				
			||||||
# R1710 inconsistent-return-statements
 | 
					 | 
				
			||||||
# R0912 too-many-branches
 | 
					 | 
				
			||||||
# R0914 too-many-locals
 | 
					 | 
				
			||||||
# R0915 too-many-statements
 | 
					 | 
				
			||||||
# W0511 fix-me
 | 
					# W0511 fix-me
 | 
				
			||||||
# W0231 super-init-not-called
 | 
					disable=C0111,W0511
 | 
				
			||||||
# W0233 non-parent-init-called
 | 
					 | 
				
			||||||
disable=C0111,C0301,R1710,R0912,R0914,R0915,W0511,W0231,W0233
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Enable the message, report, category or checker with the given id(s). You can
 | 
					# Enable the message, report, category or checker with the given id(s). You can
 | 
				
			||||||
# either give multiple identifier separated by comma (,) or put this option
 | 
					# either give multiple identifier separated by comma (,) or put this option
 | 
				
			||||||
| 
						 | 
					@ -229,7 +222,7 @@ indent-after-paren=4
 | 
				
			||||||
indent-string='    '
 | 
					indent-string='    '
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Maximum number of characters on a single line.
 | 
					# Maximum number of characters on a single line.
 | 
				
			||||||
max-line-length=100
 | 
					max-line-length=80
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Maximum number of lines in a module
 | 
					# Maximum number of lines in a module
 | 
				
			||||||
max-module-lines=1000
 | 
					max-module-lines=1000
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,9 +1,10 @@
 | 
				
			||||||
#!/bin/sh
 | 
					#!/bin/sh
 | 
				
			||||||
PYLINT=${PYLINT:-pylint}
 | 
					PYLINT=${PYLINT:-pylint}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
"$PYLINT" --disable=C0103,C0302,C0330,C0411,C0412,C0413,E0203,E0401,E0611,E0710,E0712,E1101,E1102,E1133,E1136,R0201,R0901,R0904,R0913,R0916,R1702,W0201,W0212,W0221,W0223,W0311,W0401,W0603,W0613 "$@"
 | 
					"$PYLINT" --disable=C0103,C0302,C0301,C0330,C0411,C0412,C0413,E0203,E0401,E0611,E0710,E0712,E1101,E1102,E1133,E1136,R0201,R0901,R0904,R0912,R0913,R0914,R0915,R0916,R1702,R1710,W0201,W0212,W0221,W0223,W0231,W0233,W0311,W0401,W0603,W0613 "$@"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# C0103 invalid-name
 | 
					# C0103 invalid-name
 | 
				
			||||||
 | 
					# C0301 line-too-long
 | 
				
			||||||
# C0302 too-many-lines
 | 
					# C0302 too-many-lines
 | 
				
			||||||
# C0330 bad-continuation
 | 
					# C0330 bad-continuation
 | 
				
			||||||
# C0411 wrong-import-order
 | 
					# C0411 wrong-import-order
 | 
				
			||||||
| 
						 | 
					@ -22,12 +23,18 @@ PYLINT=${PYLINT:-pylint}
 | 
				
			||||||
# R0901 too-many-ancestors
 | 
					# R0901 too-many-ancestors
 | 
				
			||||||
# R0904 too-many-public-methods
 | 
					# R0904 too-many-public-methods
 | 
				
			||||||
# R0913 too-many-arguments
 | 
					# R0913 too-many-arguments
 | 
				
			||||||
 | 
					# R0912 too-many-branches
 | 
				
			||||||
 | 
					# R0914 too-many-locals
 | 
				
			||||||
 | 
					# R0915 too-many-statements
 | 
				
			||||||
# R0916 too-many-boolean-expressions
 | 
					# R0916 too-many-boolean-expressions
 | 
				
			||||||
# R1702 too-many-nested-blocks
 | 
					# R1702 too-many-nested-blocks
 | 
				
			||||||
 | 
					# R1710 inconsistent-return-statements
 | 
				
			||||||
# W0201 attribute-defined-outside-init
 | 
					# W0201 attribute-defined-outside-init
 | 
				
			||||||
# W0212 protected-access
 | 
					# W0212 protected-access
 | 
				
			||||||
# W0221 arguments-differ
 | 
					# W0221 arguments-differ
 | 
				
			||||||
# W0223 abstract-method
 | 
					# W0223 abstract-method
 | 
				
			||||||
 | 
					# W0231 super-init-not-called
 | 
				
			||||||
 | 
					# W0233 non-parent-init-called
 | 
				
			||||||
# W0311 bad-indentation
 | 
					# W0311 bad-indentation
 | 
				
			||||||
# W0401 wildcard-import
 | 
					# W0401 wildcard-import
 | 
				
			||||||
# W0603 global-statement
 | 
					# W0603 global-statement
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue