Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement XDG directory spec in config files #6304

Merged
merged 2 commits into from
Feb 1, 2019
Merged

Implement XDG directory spec in config files #6304

merged 2 commits into from
Feb 1, 2019

Commits on Feb 1, 2019

  1. Implement XDG directory spec in config files

    Current config file search precedence:
    
    1. `./mypy.ini`
    2. `./setup.cfg`
    3. `~/.mypy.ini`
    
    After this patch, search precedence becomes:
    
    1. `./mypy.ini`
    2. `./setup.cfg`
    3. `$XDG_CONFIG_HOME/mypy/config`
    4. `~/.config/mypy/config`
    5. `~/.mypy.ini`
    
    For more information, refer to the freedesktop.org XDG Base Directory
    Specification:
    
    * https://standards.freedesktop.org/basedir-spec/basedir-spec-0.8.html
    
    Closes #6065
    rpdelaney committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    207edd3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e937ae0 View commit details
    Browse the repository at this point in the history