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

Conversation

@rpdelaney
Copy link
Contributor

commented Feb 1, 2019

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:

Closes #6065

rpdelaney added some commits Feb 1, 2019

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
@msullivan
Copy link
Collaborator

left a comment

Sure, why not?

@msullivan msullivan merged commit 89c3d3a into python:master Feb 1, 2019

2 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.