fname
stringlengths
63
176
rel_fname
stringclasses
706 values
line
int64
-1
4.5k
name
stringlengths
1
81
kind
stringclasses
2 values
category
stringclasses
2 values
info
stringlengths
0
77.9k
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/u/unnecessary-lambda-assignment/good.py
doc/data/messages/u/unnecessary-lambda-assignment/good.py
-1
x
ref
function
none
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/u/unnecessary-lambda-assignment/good.py
doc/data/messages/u/unnecessary-lambda-assignment/good.py
-1
x
ref
function
none
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/u/unreachable/bad.py
doc/data/messages/u/unreachable/bad.py
0
say_hello
def
function
def say_hello(): return _True print("Hello World!, Outside function.") # [unreachable]
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/u/unreachable/good.py
doc/data/messages/u/unreachable/good.py
0
say_hello
def
function
def say_hello(): print("Hello World!, Inside function.") return _True
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/u/unspecified-encoding/bad.py
doc/data/messages/u/unspecified-encoding/bad.py
0
foo
def
function
def foo(file_path): with open(file_path) as file: # [unspecified-encoding] contents = file.read()
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/u/unspecified-encoding/bad.py
doc/data/messages/u/unspecified-encoding/bad.py
2
read
ref
function
contents = file.read()
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/u/unspecified-encoding/good.py
doc/data/messages/u/unspecified-encoding/good.py
0
foo
def
function
def foo(file_path): with open(file_path, encoding="utf-8") as file: contents = file.read()
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/u/unspecified-encoding/good.py
doc/data/messages/u/unspecified-encoding/good.py
2
read
ref
function
contents = file.read()
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/u/unused-wildcard-import/bad.py
doc/data/messages/u/unused-wildcard-import/bad.py
3
Animal
def
class
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/u/unused-wildcard-import/bad.py
doc/data/messages/u/unused-wildcard-import/bad.py
-1
abc
ref
function
none
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/u/unused-wildcard-import/bad.py
doc/data/messages/u/unused-wildcard-import/bad.py
-1
Animal
ref
function
none
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/u/unused-wildcard-import/bad.py
doc/data/messages/u/unused-wildcard-import/bad.py
-1
ABC
ref
function
none
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/u/unused-wildcard-import/good.py
doc/data/messages/u/unused-wildcard-import/good.py
3
Animal
def
class
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/u/unused-wildcard-import/good.py
doc/data/messages/u/unused-wildcard-import/good.py
-1
abc
ref
function
none
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/u/unused-wildcard-import/good.py
doc/data/messages/u/unused-wildcard-import/good.py
-1
ABC
ref
function
none
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/u/unused-wildcard-import/good.py
doc/data/messages/u/unused-wildcard-import/good.py
-1
Animal
ref
function
none
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/u/unused-wildcard-import/good.py
doc/data/messages/u/unused-wildcard-import/good.py
-1
ABC
ref
function
none
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/u/useless-return/bad.py
doc/data/messages/u/useless-return/bad.py
3
print_python_version
def
function
def print_python_version(): # [useless-return] print(sys.version) return None
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/u/useless-return/good.py
doc/data/messages/u/useless-return/good.py
3
print_python_version
def
function
def print_python_version(): print(sys.version)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/y/yield-inside-async-function/bad.py
doc/data/messages/y/yield-inside-async-function/bad.py
0
foo
def
function
async def foo(): yield from [1, 2, 3] # [yield-inside-async-function]
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/y/yield-inside-async-function/bad.py
doc/data/messages/y/yield-inside-async-function/bad.py
-1
foo
ref
function
none
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/y/yield-inside-async-function/good.py
doc/data/messages/y/yield-inside-async-function/good.py
0
foo
def
function
async def foo(): def _inner_foo(): yield from [1, 2, 3]
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/y/yield-inside-async-function/good.py
doc/data/messages/y/yield-inside-async-function/good.py
1
_inner_foo
def
function
def _inner_foo(): yield from [1, 2, 3]
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/y/yield-inside-async-function/good.py
doc/data/messages/y/yield-inside-async-function/good.py
5
foo
def
function
async def foo(): def _inner_foo(): yield from [1, 2, 3]
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/y/yield-inside-async-function/good.py
doc/data/messages/y/yield-inside-async-function/good.py
-1
foo
ref
function
none
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/y/yield-inside-async-function/good.py
doc/data/messages/y/yield-inside-async-function/good.py
-1
_inner_foo
ref
function
none
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/data/messages/y/yield-inside-async-function/good.py
doc/data/messages/y/yield-inside-async-function/good.py
-1
foo
ref
function
none
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_extensions.py
doc/exts/pylint_extensions.py
23
builder_inited
def
function
def builder_inited(app: Optional[Sphinx]) -> None: """Output full documentation in ReST format for all extension modules.""" # PACKAGE/docs/exts/pylint_extensions.py --> PACKAGE/ base_path = os.path.dirname( os.path.dirname(os.path.dirname(os.path.abspath(__file__))) ) # PACKAGE/ --> PACKAGE...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_extensions.py
doc/exts/pylint_extensions.py
26
dirname
ref
function
base_path = os.path.dirname(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_extensions.py
doc/exts/pylint_extensions.py
27
dirname
ref
function
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_extensions.py
doc/exts/pylint_extensions.py
27
dirname
ref
function
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_extensions.py
doc/exts/pylint_extensions.py
27
abspath
ref
function
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_extensions.py
doc/exts/pylint_extensions.py
34
splitext
ref
function
name, ext = os.path.splitext(filename)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_extensions.py
doc/exts/pylint_extensions.py
45
PyLinter
ref
function
linter = PyLinter()
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_extensions.py
doc/exts/pylint_extensions.py
46
load_plugin_modules
ref
function
linter.load_plugin_modules(modules)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_extensions.py
doc/exts/pylint_extensions.py
53
get_rst_title
ref
function
get_rst_title("Optional Pylint checkers in the extensions module", "=")
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_extensions.py
doc/exts/pylint_extensions.py
70
get_plugins_info
ref
function
by_checker = get_plugins_info(linter, doc_files)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_extensions.py
doc/exts/pylint_extensions.py
74
get_full_documentation
ref
function
print(checker.get_full_documentation(**information)[:-1], file=stream)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_extensions.py
doc/exts/pylint_extensions.py
77
get_plugins_info
def
function
def get_plugins_info(linter, doc_files): by_checker = {} for checker in linter.get_checkers(): if checker.name == MAIN_CHECKER_NAME: continue module = checker.__module__ # Plugins only - skip over core checkers if re.match("pylint.checkers", module): conti...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_extensions.py
doc/exts/pylint_extensions.py
79
get_checkers
ref
function
for checker in linter.get_checkers():
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_extensions.py
doc/exts/pylint_extensions.py
96
options_and_values
ref
function
by_checker[checker]["options"] += checker.options_and_values()
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_extensions.py
doc/exts/pylint_extensions.py
106
options_and_values
ref
function
"options": list(checker.options_and_values()),
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_extensions.py
doc/exts/pylint_extensions.py
115
setup
def
function
def setup(app): app.connect("builder-inited", builder_inited) return {"version": sphinx.__display_version__}
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_extensions.py
doc/exts/pylint_extensions.py
116
connect
ref
function
app.connect("builder-inited", builder_inited)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_extensions.py
doc/exts/pylint_extensions.py
121
builder_inited
ref
function
builder_inited(None)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_features.py
doc/exts/pylint_features.py
19
builder_inited
def
function
def builder_inited(app: Optional[Sphinx]) -> None: # PACKAGE/docs/exts/pylint_extensions.py --> PACKAGE/ base_path = os.path.dirname( os.path.dirname(os.path.dirname(os.path.abspath(__file__))) ) linter = PyLinter() linter.load_default_plugins() features = os.path.join(base_path, "doc", ...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_features.py
doc/exts/pylint_features.py
21
dirname
ref
function
base_path = os.path.dirname(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_features.py
doc/exts/pylint_features.py
22
dirname
ref
function
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_features.py
doc/exts/pylint_features.py
22
dirname
ref
function
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_features.py
doc/exts/pylint_features.py
22
abspath
ref
function
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_features.py
doc/exts/pylint_features.py
24
PyLinter
ref
function
linter = PyLinter()
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_features.py
doc/exts/pylint_features.py
25
load_default_plugins
ref
function
linter.load_default_plugins()
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_features.py
doc/exts/pylint_features.py
31
print_full_documentation
ref
function
print_full_documentation(linter, stream)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_features.py
doc/exts/pylint_features.py
34
setup
def
function
def setup(app): app.connect("builder-inited", builder_inited) return {"version": sphinx.__display_version__}
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_features.py
doc/exts/pylint_features.py
35
connect
ref
function
app.connect("builder-inited", builder_inited)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_features.py
doc/exts/pylint_features.py
40
builder_inited
ref
function
builder_inited(None)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_messages.py
doc/exts/pylint_messages.py
34
MessageData
def
class
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_messages.py
doc/exts/pylint_messages.py
54
_register_all_checkers_and_extensions
def
function
def _register_all_checkers_and_extensions(linter: PyLinter) -> None: """Registers all checkers and extensions found in the default folders.""" initialize_checkers(linter) initialize_extensions(linter)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_messages.py
doc/exts/pylint_messages.py
56
initialize_checkers
ref
function
initialize_checkers(linter)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_messages.py
doc/exts/pylint_messages.py
57
initialize_extensions
ref
function
initialize_extensions(linter)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_messages.py
doc/exts/pylint_messages.py
60
_get_message_data
def
function
def _get_message_data(data_path: Path) -> Tuple[str, str, str, str]: """Get the message data from the specified path.""" good_code, bad_code, details, related = "", "", "", "" if not data_path.exists(): return good_code, bad_code, details, related if (data_path / "good.py").exists(): w...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_messages.py
doc/exts/pylint_messages.py
69
readlines
ref
function
file_content = file.readlines()
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_messages.py
doc/exts/pylint_messages.py
80
readlines
ref
function
file_content = file.readlines()
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_messages.py
doc/exts/pylint_messages.py
108
_get_all_messages
def
function
def _get_all_messages( linter: PyLinter,
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_messages.py
doc/exts/pylint_messages.py
134
get_checkers
ref
function
for checker in linter.get_checkers()
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_messages.py
doc/exts/pylint_messages.py
140
_get_message_data
ref
function
good_code, bad_code, details, related = _get_message_data(message_data_path)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_messages.py
doc/exts/pylint_messages.py
148
MessageData
ref
function
message_data = MessageData(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_messages.py
doc/exts/pylint_messages.py
172
_write_message_page
def
function
def _write_message_page(messages_dict: MessagesDict) -> None: """Create or overwrite the file for each message.""" for category, messages in messages_dict.items(): category_dir = PYLINT_MESSAGES_PATH / category if not category_dir.exists(): category_dir.mkdir(parents=_True, exist_ok=...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_messages.py
doc/exts/pylint_messages.py
179
relpath
ref
function
checker_module_rel_path = os.path.relpath(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_messages.py
doc/exts/pylint_messages.py
187
get_rst_title
ref
function
{get_rst_title(f"{message.name} / {message.id}", "=")}
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_messages.py
doc/exts/pylint_messages.py
216
_write_messages_list_page
def
function
def _write_messages_list_page( messages_dict: MessagesDict, old_messages_dict: OldMessagesDict
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_messages.py
doc/exts/pylint_messages.py
226
get_rst_title
ref
function
{get_rst_title("Overview of all Pylint messages", "=")}
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_messages.py
doc/exts/pylint_messages.py
256
get_rst_title
ref
function
f"""{get_rst_title(category.capitalize(), "-")}
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_messages.py
doc/exts/pylint_messages.py
276
_write_redirect_pages
def
function
def _write_redirect_pages(old_messages: OldMessagesDict) -> None: """Create redirect pages for old-messages.""" for category, old_names in old_messages.items(): category_dir = PYLINT_MESSAGES_PATH / category if not os.path.exists(category_dir): os.makedirs(category_dir) for o...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_messages.py
doc/exts/pylint_messages.py
291
get_rst_title
ref
function
{get_rst_title(" / ".join(old_name), "=")}
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_messages.py
doc/exts/pylint_messages.py
304
build_messages_pages
def
function
def build_messages_pages(app: Optional[Sphinx]) -> None: """Overwrite messages files by printing the documentation to a stream. Documentation is written in ReST format. """ # Create linter, register all checkers and extensions and get all messages linter = PyLinter() _register_all_checkers_and_...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_messages.py
doc/exts/pylint_messages.py
310
PyLinter
ref
function
linter = PyLinter()
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_messages.py
doc/exts/pylint_messages.py
311
_register_all_checkers_and_extensions
ref
function
_register_all_checkers_and_extensions(linter)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_messages.py
doc/exts/pylint_messages.py
312
_get_all_messages
ref
function
messages, old_messages = _get_all_messages(linter)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_messages.py
doc/exts/pylint_messages.py
315
_write_message_page
ref
function
_write_message_page(messages)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_messages.py
doc/exts/pylint_messages.py
316
_write_messages_list_page
ref
function
_write_messages_list_page(messages, old_messages)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_messages.py
doc/exts/pylint_messages.py
319
_write_redirect_pages
ref
function
_write_redirect_pages(old_messages)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_messages.py
doc/exts/pylint_messages.py
322
setup
def
function
def setup(app: Sphinx) -> None: """Connects the extension to the Sphinx process.""" # Register callback at the builder-inited Sphinx event # See https://www.sphinx-doc.org/en/master/extdev/appapi.html app.connect("builder-inited", build_messages_pages)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_messages.py
doc/exts/pylint_messages.py
326
connect
ref
function
app.connect("builder-inited", build_messages_pages)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_options.py
doc/exts/pylint_options.py
25
OptionsData
def
class
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_options.py
doc/exts/pylint_options.py
41
_register_all_checkers_and_extensions
def
function
def _register_all_checkers_and_extensions(linter: PyLinter) -> None: """Registers all checkers and extensions found in the default folders.""" initialize_checkers(linter) initialize_extensions(linter)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_options.py
doc/exts/pylint_options.py
43
initialize_checkers
ref
function
initialize_checkers(linter)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_options.py
doc/exts/pylint_options.py
44
initialize_extensions
ref
function
initialize_extensions(linter)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_options.py
doc/exts/pylint_options.py
47
_get_all_options
def
function
def _get_all_options(linter: PyLinter) -> OptionsDataDict: """Get all options registered to a linter and return the data.""" all_options: OptionsDataDict = defaultdict(list) for checker in sorted(linter.get_checkers()): ch_name = checker.name for option in checker.options: all_op...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_options.py
doc/exts/pylint_options.py
50
get_checkers
ref
function
for checker in sorted(linter.get_checkers()):
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_options.py
doc/exts/pylint_options.py
54
OptionsData
ref
function
OptionsData(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_options.py
doc/exts/pylint_options.py
65
_create_checker_section
def
function
def _create_checker_section( checker: str, options: list[OptionsData], linter: PyLinter
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_options.py
doc/exts/pylint_options.py
68
get_rst_title
ref
function
checker_string = get_rst_title(f"``{checker.capitalize()}`` Checker", "^")
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_options.py
doc/exts/pylint_options.py
70
document
ref
function
toml_doc = tomlkit.document()
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_options.py
doc/exts/pylint_options.py
71
table
ref
function
pylint_tool_table = tomlkit.table(is_super_table=True)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_options.py
doc/exts/pylint_options.py
72
key
ref
function
toml_doc.add(tomlkit.key(["tool", "pylint"]), pylint_tool_table)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_options.py
doc/exts/pylint_options.py
74
table
ref
function
checker_table = tomlkit.table()
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_options.py
doc/exts/pylint_options.py
77
get_rst_title
ref
function
checker_string += get_rst_title(f"--{option.name}", '"')
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_options.py
doc/exts/pylint_options.py
93
comment
ref
function
checker_table.add(tomlkit.comment(f"{option.name} ="))
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/doc/exts/pylint_options.py
doc/exts/pylint_options.py
94
nl
ref
function
checker_table.add(tomlkit.nl())