1
0
mirror of https://github.com/certbot/certbot.git synced 2025-07-30 09:03:08 +03:00

Added certbot-ci to lint section. Silenced and fixed linting warnings. (#8450)

This commit is contained in:
Mads Jensen
2020-12-16 20:34:12 +01:00
committed by GitHub
parent d38766e05c
commit 96a05d946c
19 changed files with 206 additions and 125 deletions

View File

@ -10,7 +10,9 @@ from pylint.checkers import BaseChecker
from pylint.interfaces import IAstroidChecker
# Modules in theses packages can import the os module.
WHITELIST_PACKAGES = ['acme', 'certbot_compatibility_test', 'lock_test']
WHITELIST_PACKAGES = [
'acme', 'certbot_integration_tests', 'certbot_compatibility_test', 'lock_test'
]
class ForbidStandardOsModule(BaseChecker):
@ -25,8 +27,8 @@ class ForbidStandardOsModule(BaseChecker):
'E5001': (
'Forbidden use of os module, certbot.compat.os must be used instead',
'os-module-forbidden',
'Some methods from the standard os module cannot be used for security reasons on Windows: '
'the safe wrapper certbot.compat.os must be used instead in Certbot.'
'Some methods from the standard os module cannot be used for security reasons on '
'Windows: the safe wrapper certbot.compat.os must be used instead in Certbot.'
)
}
priority = -1