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

Conversation

rpdelaney
Copy link
Contributor

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

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

@msullivan 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants