Implement XDG directory spec in config files by rpdelaney · Pull Request #6304 · python/mypy

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Comments

Merged

msullivan merged 2 commits intopython:masterfrom

rpdelaney:xdg

Feb 1, 2019

Merged

Implement XDG directory spec in config files#6304

msullivan merged 2 commits intopython:masterfrom

rpdelaney:xdg

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

mr-c reacted with hooray emoji
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

Reviewers

@msullivan msullivan msullivan approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@rpdelaney @msullivan