mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +00:00 
			
		
		
		
	[core] Move pylint config into pyproject.toml (#6739)
This commit is contained in:
		
							
								
								
									
										30
									
								
								pylintrc
									
									
									
									
									
								
							
							
						
						
									
										30
									
								
								pylintrc
									
									
									
									
									
								
							| @@ -1,30 +0,0 @@ | |||||||
| [MASTER] |  | ||||||
| reports=no |  | ||||||
| ignore=api_pb2.py |  | ||||||
|  |  | ||||||
| disable= |  | ||||||
|   format, |  | ||||||
|   missing-docstring, |  | ||||||
|   fixme, |  | ||||||
|   unused-argument, |  | ||||||
|   global-statement, |  | ||||||
|   too-few-public-methods, |  | ||||||
|   too-many-lines, |  | ||||||
|   too-many-locals, |  | ||||||
|   too-many-ancestors, |  | ||||||
|   too-many-branches, |  | ||||||
|   too-many-statements, |  | ||||||
|   too-many-arguments, |  | ||||||
|   too-many-return-statements, |  | ||||||
|   too-many-instance-attributes, |  | ||||||
|   duplicate-code, |  | ||||||
|   invalid-name, |  | ||||||
|   cyclic-import, |  | ||||||
|   redefined-builtin, |  | ||||||
|   undefined-loop-variable, |  | ||||||
|   useless-object-inheritance, |  | ||||||
|   stop-iteration-return, |  | ||||||
|   import-outside-toplevel, |  | ||||||
|   # Broken |  | ||||||
|   unsupported-membership-test, |  | ||||||
|   unsubscriptable-object, |  | ||||||
| @@ -63,3 +63,45 @@ addopts = [ | |||||||
|   "--cov=esphome", |   "--cov=esphome", | ||||||
|   "--cov-branch", |   "--cov-branch", | ||||||
| ] | ] | ||||||
|  |  | ||||||
|  | [tool.pylint.MAIN] | ||||||
|  | py-version = "3.9" | ||||||
|  | ignore = [ | ||||||
|  |   "api_pb2.py", | ||||||
|  | ] | ||||||
|  | persistent = false | ||||||
|  |  | ||||||
|  | [tool.pylint.REPORTS] | ||||||
|  | score = false | ||||||
|  |  | ||||||
|  | [tool.pylint."MESSAGES CONTROL"] | ||||||
|  | disable = [ | ||||||
|  |   "format", | ||||||
|  |   "missing-docstring", | ||||||
|  |   "fixme", | ||||||
|  |   "unused-argument", | ||||||
|  |   "global-statement", | ||||||
|  |   "too-few-public-methods", | ||||||
|  |   "too-many-lines", | ||||||
|  |   "too-many-locals", | ||||||
|  |   "too-many-ancestors", | ||||||
|  |   "too-many-branches", | ||||||
|  |   "too-many-statements", | ||||||
|  |   "too-many-arguments", | ||||||
|  |   "too-many-return-statements", | ||||||
|  |   "too-many-instance-attributes", | ||||||
|  |   "duplicate-code", | ||||||
|  |   "invalid-name", | ||||||
|  |   "cyclic-import", | ||||||
|  |   "redefined-builtin", | ||||||
|  |   "undefined-loop-variable", | ||||||
|  |   "useless-object-inheritance", | ||||||
|  |   "stop-iteration-return", | ||||||
|  |   "import-outside-toplevel", | ||||||
|  |   # Broken | ||||||
|  |   "unsupported-membership-test", | ||||||
|  |   "unsubscriptable-object", | ||||||
|  | ] | ||||||
|  |  | ||||||
|  | [tool.pylint.FORMAT] | ||||||
|  | expected-line-ending-format = "LF" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user