Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Automatically respect .pylintrc files in subdirectories #442

Closed
@thernstig

Description

@thernstig

Environment data

VS Code version: 1.19.0
Python Extension version: 0.9.0 (14 December 2017)
Python Version: 3.6.1
OS and version: Windows 10 Home, Version 1703, OS-version 15063.483

Actual behavior

.pylintrc files in a directory in the workspace are not automatically found by pylint

Expected behavior

  • .pylintrc files found in a directory should be automatically respected for that folder and all sub-directories.
  • New .pylintrc files in sub-directories should take precedence over parent directories .pylintrc files

This is how it works when running the pylint command via terminal. .pylintrc files are automatically respected without supplying them specifically via the option --rcfile

Note that I am unsure if other options are respected as defined here
https://pylint.readthedocs.io/en/latest/user_guide/run.html#command-line-options

Steps to reproduce:

  • Create a .pylintrc file in a directory in the workspace and notice how the rules defined are not respected

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions