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/pylint/lint/pylinter.py
pylint/lint/pylinter.py
384
set_reporter
ref
function
self.set_reporter(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
385
MultiReporter
ref
function
reporters.MultiReporter(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
391
set_reporter
ref
function
self.set_reporter(sub_reporters[0])
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
393
_load_reporter_by_name
def
function
def _load_reporter_by_name(self, reporter_name: str) -> reporters.BaseReporter: name = reporter_name.lower() if name in self._reporters: return self._reporters[name]() try: reporter_class = _load_reporter_by_class(reporter_name) except (ImportError, Attribute...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
399
_load_reporter_by_class
ref
class
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
401
InvalidReporterError
ref
function
raise exceptions.InvalidReporterError(name) from e
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
403
reporter_class
ref
class
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
405
set_reporter
def
function
def set_reporter( self, reporter: reporters.BaseReporter | reporters.MultiReporter ) -> None: """Set the reporter used to display messages and reports.""" self.reporter = reporter reporter.linter = self def register_reporter(self, reporter_class: type[reporters.BaseReporter]...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
412
register_reporter
def
class
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
416
report_order
def
function
def report_order(self) -> list[BaseChecker]: reports = sorted(self._reports, key=lambda x: getattr(x, "name", "")) try: # Remove the current reporter and add it # at the end of the list. reports.pop(reports.index(self)) except ValueError: pass ...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
430
register_checker
def
function
def register_checker(self, checker: checkers.BaseChecker) -> None: """This method auto registers the checker.""" self._checkers[checker.name].append(checker) for r_id, r_title, r_cb in checker.reports: self.register_report(r_id, r_title, r_cb, checker) if hasattr(checker,...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
434
register_report
ref
function
self.register_report(r_id, r_title, r_cb, checker)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
436
register_messages_from_checker
ref
function
self.msgs_store.register_messages_from_checker(checker)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
439
disable
ref
function
self.disable(checker.name)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
441
enable_fail_on_messages
def
function
def enable_fail_on_messages(self) -> None: """Enable 'fail on' msgs. Convert values in config.fail_on (which might be msg category, msg id, or symbol) to specific msgs, then enable and flag them for later. """ fail_on_vals = self.config.fail_on if not fail_on_vals: ...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
466
enable
ref
function
self.enable(msg.msgid)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
472
any_fail_on_issues
def
function
def any_fail_on_issues(self) -> bool: return any(x in self.fail_on_symbols for x in self.stats.by_msg.keys()) def disable_noerror_messages(self) -> None: for msgcat, msgids in self.msgs_store._msgs_by_category.items(): # enable only messages with 'error' severity and above ('fatal')...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
475
disable_noerror_messages
def
function
def disable_noerror_messages(self) -> None: for msgcat, msgids in self.msgs_store._msgs_by_category.items(): # enable only messages with 'error' severity and above ('fatal') if msgcat in {"E", "F"}: for msgid in msgids: self.enable(msgid) ...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
480
enable
ref
function
self.enable(msgid)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
483
disable
ref
function
self.disable(msgid)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
485
disable_reporters
def
function
def disable_reporters(self) -> None: """Disable all reporters.""" for _reporters in self._reports.values(): for report_id, _, _ in _reporters: self.disable_report(report_id) def _parse_error_mode(self) -> None: """Parse the current state of the error mode. ...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
489
disable_report
ref
function
self.disable_report(report_id)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
491
_parse_error_mode
def
function
def _parse_error_mode(self) -> None: """Parse the current state of the error mode. Error mode: enable only errors; no reports, no persistent. """ if not self._error_mode: return self.disable_noerror_messages() self.disable("miscellaneous") self.s...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
499
disable_noerror_messages
ref
function
self.disable_noerror_messages()
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
500
disable
ref
function
self.disable("miscellaneous")
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
501
set_option
ref
function
self.set_option("reports", False)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
502
set_option
ref
function
self.set_option("persistent", False)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
503
set_option
ref
function
self.set_option("score", False)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
505
list_messages_enabled
def
function
def list_messages_enabled(self) -> None: emittable, non_emittable = self.msgs_store.find_emittable_messages() enabled = [] disabled = [] for message in emittable: if self.is_message_enabled(message.msgid): enabled.append(f" {message.symbol} ({message.msgi...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
506
find_emittable_messages
ref
function
emittable, non_emittable = self.msgs_store.find_emittable_messages()
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
510
is_message_enabled
ref
function
if self.is_message_enabled(message.msgid):
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
528
process_tokens
def
function
def process_tokens(self, tokens: list[tokenize.TokenInfo]) -> None: """Process tokens from the current module to search for module/block level options. """ control_pragmas = {"disable", "disable-next", "enable"} prev_line = None saw_newline = _True seen_newlin...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
547
search
ref
function
match = OPTION_PO.search(content)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
551
parse_pragma
ref
function
for pragma_repr in parse_pragma(match.group(2)):
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
554
add_message
ref
function
self.add_message(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
559
add_message
ref
function
self.add_message("file-ignored", line=start[0])
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
567
add_message
ref
function
self.add_message(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
581
add_message
ref
function
self.add_message(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
586
add_message
ref
function
self.add_message("file-ignored", line=start[0])
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
595
meth
ref
function
meth(msgid, "module", l_start)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
598
add_message
ref
function
self.add_message(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
602
add_message
ref
function
self.add_message(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
607
add_message
ref
function
self.add_message("bad-inline-option", args=err.token, line=start[0])
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
612
get_checkers
def
function
def get_checkers(self) -> list[BaseChecker]: """Return all available checkers as an ordered list.""" return sorted(c for _checkers in self._checkers.values() for c in _checkers) def get_checker_names(self) -> list[str]: """Get all the checker names that this linter knows about.""" ...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
616
get_checker_names
def
function
def get_checker_names(self) -> list[str]: """Get all the checker names that this linter knows about.""" return sorted( { checker.name for checker in self.get_checkers() if checker.name != MAIN_CHECKER_NAME } ) def p...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
621
get_checkers
ref
function
for checker in self.get_checkers()
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
626
prepare_checkers
def
function
def prepare_checkers(self) -> list[BaseChecker]: """Return checkers needed for activated messages and reports.""" if not self.config.reports: self.disable_reporters() # get needed checkers needed_checkers: list[BaseChecker] = [self] for checker in self.get_checker...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
629
disable_reporters
ref
function
self.disable_reporters()
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
632
get_checkers
ref
function
for checker in self.get_checkers()[1:]:
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
633
is_message_enabled
ref
function
messages = {msg for msg in checker.msgs if self.is_message_enabled(msg)}
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
634
report_is_enabled
ref
function
if messages or any(self.report_is_enabled(r[0]) for r in checker.reports):
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
640
should_analyze_file
def
function
null
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
662
initialize
def
function
def initialize(self) -> None: """Initialize linter for linting. This method is called before any linting is done. """ # initialize msgs_state now that all messages have been registered into # the store for msg in self.msgs_store.messages: if not msg.may_b...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
670
may_be_emitted
ref
function
if not msg.may_be_emitted():
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
674
_discover_files
def
function
def _discover_files(files_or_modules: Sequence[str]) -> Iterator[str]: """Discover python modules and packages in sub-directory. Returns iterator of paths to discovered modules and packages. """ for something in files_or_modules: if os.path.isdir(something) and not os.pa...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
680
isdir
ref
function
if os.path.isdir(something) and not os.path.isfile(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
680
isfile
ref
function
if os.path.isdir(something) and not os.path.isfile(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
700
check
def
function
def check(self, files_or_modules: Sequence[str] | str) -> None: """Main checking entry: check a list of files or modules from their name. files_or_modules is either a string or list of strings presenting modules to check. """ self.initialize() if not isinstance(files_or_modu...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
705
initialize
ref
function
self.initialize()
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
714
_discover_files
ref
function
files_or_modules = tuple(self._discover_files(files_or_modules))
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
717
InvalidArgsError
ref
function
raise exceptions.InvalidArgsError(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
722
fix_import_path
ref
function
with fix_import_path(files_or_modules):
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
723
_check_files
ref
function
self._check_files(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
724
_read_stdin
ref
function
functools.partial(self.get_ast, data=_read_stdin()),
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
725
_get_file_descr_from_stdin
ref
function
[self._get_file_descr_from_stdin(filepath)],
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
728
fix_import_path
ref
function
with fix_import_path(files_or_modules):
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
729
_check_files
ref
function
self._check_files(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
730
_iterate_file_descrs
ref
function
self.get_ast, self._iterate_file_descrs(files_or_modules)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
733
check_parallel
ref
function
check_parallel(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
736
_iterate_file_descrs
ref
function
self._iterate_file_descrs(files_or_modules),
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
740
check_single_file
def
function
def check_single_file(self, name: str, filepath: str, modname: str) -> None: warnings.warn( "In pylint 3.0, the checkers check_single_file function will be removed. " "Use check_single_file_item instead.", DeprecationWarning, ) self.check_single_file_item(...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
746
check_single_file_item
ref
function
self.check_single_file_item(FileItem(name, filepath, modname))
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
746
FileItem
ref
function
self.check_single_file_item(FileItem(name, filepath, modname))
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
748
check_single_file_item
def
function
def check_single_file_item(self, file: FileItem) -> None: """Check single file item. The arguments are the same that are documented in _check_files initialize() should be called before calling this method """ with self._astroid_module_checker() as check_astroid_module: ...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
755
_astroid_module_checker
ref
function
with self._astroid_module_checker() as check_astroid_module:
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
756
_check_file
ref
function
self._check_file(self.get_ast, check_astroid_module, file)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
758
_check_files
def
function
def _check_files( self, get_ast: GetAstProtocol, file_descrs: Iterable[FileItem], ) -> None: """Check all files from file_descrs.""" with self._astroid_module_checker() as check_astroid_module: for file in file_descrs: try: ...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
764
_astroid_module_checker
ref
function
with self._astroid_module_checker() as check_astroid_module:
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
767
_check_file
ref
function
self._check_file(get_ast, check_astroid_module, file)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
769
prepare_crash_report
ref
function
template_path = prepare_crash_report(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
772
get_fatal_error_message
ref
function
msg = get_fatal_error_message(file.filepath, template_path)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
775
add_message
ref
function
self.add_message(symbol, args=(file.filepath, msg))
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
778
add_message
ref
function
self.add_message(symbol, args=msg)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
780
_check_file
def
function
def _check_file( self, get_ast: GetAstProtocol, check_astroid_module: Callable[[nodes.Module], bool | None], file: FileItem, ) -> None: """Check a file using the passed utility functions (get_ast and check_astroid_module). :param callable get_ast: callable return...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
795
set_current_module
ref
function
self.set_current_module(file.name, file.filepath)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
797
get_ast
ref
function
ast_node = get_ast(file.filepath, file.name)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
803
FileState
ref
function
self.file_state = FileState(file.modpath)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
807
check_astroid_module
ref
function
check_astroid_module(ast_node)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
809
iter_spurious_suppression_messages
ref
function
spurious_messages = self.file_state.iter_spurious_suppression_messages(
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
813
add_message
ref
function
self.add_message(msgid, line, None, args)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
816
_get_file_descr_from_stdin
def
function
def _get_file_descr_from_stdin(filepath: str) -> FileItem: """Return file description (tuple of module name, file path, base name) from given file path. This method is used for creating suitable file description for _check_files when the source is standard input. """ try: ...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
826
modpath_from_file
ref
function
modname = ".".join(astroid.modutils.modpath_from_file(filepath))
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
828
splitext
ref
function
modname = os.path.splitext(os.path.basename(filepath))[0]
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
828
basename
ref
function
modname = os.path.splitext(os.path.basename(filepath))[0]
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
830
FileItem
ref
function
return FileItem(modname, filepath, filepath)
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
832
_iterate_file_descrs
def
function
def _iterate_file_descrs( self, files_or_modules: Sequence[str] ) -> Iterator[FileItem]: """Return generator yielding file descriptions (tuples of module name, file path, base name). The returned generator yield one item for each Python module that should be linted. """ ...
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
839
_expand_files
ref
function
for descr in self._expand_files(files_or_modules):
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
841
should_analyze_file
ref
function
if self.should_analyze_file(name, filepath, is_argument=is_arg):
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
842
FileItem
ref
function
yield FileItem(name, filepath, descr["basename"])
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py
pylint/lint/pylinter.py
844
_expand_files
def
function
def _expand_files(self, modules: Sequence[str]) -> list[ModuleDescriptionDict]: """Get modules and errors from a list of modules and handle errors.""" result, errors = expand_modules( modules, self.config.ignore, self.config.ignore_patterns, self._igno...