Implement XDG directory spec in config files by rpdelaney · Pull Request #6304 · python/mypy
Navigation Menu
{{ message }}
- Notifications You must be signed in to change notification settings
- Fork 3.1k
Comments
Merged
Implement XDG directory spec in config files#6304
msullivan merged 2 commits intopython:masterfrom
rpdelaney:xdg
Implement XDG directory spec in config files#6304
msullivan merged 2 commits intopython:masterfrom
rpdelaney:xdg
Conversation
Copy link
Contributor
rpdelaney
commented
Feb 1, 2019
rpdelaney
commented
Current config file search precedence:
./mypy.ini./setup.cfg~/.mypy.ini
After this patch, search precedence becomes:
./mypy.ini./setup.cfg$XDG_CONFIG_HOME/mypy/config~/.config/mypy/config~/.mypy.ini
For more information, refer to the freedesktop.org XDG Base Directory
Specification:
Closes #6065
rpdelaney added 2 commits
February 1, 2019 11:30Current 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
msullivan approved these changes Feb 1, 2019
Copy link
Collaborator
msullivan
left a comment
msullivan
left a comment
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, why not?
msullivan
merged commit
89c3d3a
into
python:master
rpdelaney
mentioned this pull request
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment