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
I am not sure but to my knowledge the return code 28 on GNU Linux indicates that something is wrong with the config file.
The point is I don't use pylint via config file. I do feed all configuration via shell switches.
The project itself do has a pyproject.toml file but there is no section (table?) for pylint in it.
Configuration
Not a config file but a unitest
def test030_pylint(self):
"""Use Pylint to check for specific error codes. Some facts about PyLint - It is one of the slowest available linters. - It is able to catch lints none of the other linters"""# Pylint base commandcmd = [
'pylint',
# Storing results in a pickle file is unnecessary'--persistent=n',
# autodetec number of parallel jobs'--jobs=0',
# Disable scoring ("Your code has been rated at xx/10")'--score=n',
# PEP8 conform line length (see PyLint Issue #3078)
f'--max-line-length={PEP8_MAX_LINE_LENGTH}',
# prevent false-positive no-module-member errors'--extension-pkg-whitelist=lxml',
# List of members which are set dynamically and missed by pylint# inference system, and so shouldn't trigger E1101 when accessed.'--generated-members=WD_ALIGN_PARAGRAPH,WD_ORIENT,PARAGRAPH',
# Allowlist variable names'--good-names=idx,fp,df',
# Allow fstrings when logging'--disable=logging-fstring-interpolation',
]
# Add py files
cmd.extend(self.collected_py_files[6:7])
# subprocess.run(cmd, check=True)r = subprocess.run(
cmd,
check=False,
universal_newlines=True,
capture_output=True)
print(f'!!!!!!!!!!!!!!!! {r.stdout=}')
print(f'!!!!!!!!!!!!1!! {r.stderr=}')
print(f'ÖÖÖÖÖÖÖÖÖÖÖÖÖÖ {r.returncode=}')
self.assertEqual(0, r.returncode)
Command used
See configuration
Pylint output
Returncode 28
Expected behavior
PyLint should ignore the config file pyproject.toml when it does not contain a section/table related to pylint.
Feel free to make a proposal if you have something in mind, For me exit codes are numerical by nature and there's nothing we can do to make them clearer.
Bug description
I am not sure but to my knowledge the return code 28 on GNU Linux indicates that something is wrong with the config file.
The point is I don't use pylint via config file. I do feed all configuration via shell switches.
The project itself do has a pyproject.toml file but there is no section (table?) for pylint in it.
Configuration
Command used
See configuration
Pylint output
Returncode 28
Expected behavior
PyLint should ignore the config file pyproject.toml when it does not contain a section/table related to pylint.
Pylint version
OS / Environment
Debian GNU Linux 12
The text was updated successfully, but these errors were encountered: