Skip to content

Commit a086665

Browse files
authored
refactor(config)!: remove legacy config paths (amperser#1472)
BREAKING CHANGE: The legacy configuration paths for global configuration (`/etc/proselintrc`) and home configuration `~/.proselintrc.json` are no longer read. Please relocate any configuration you wish to keep to `$XDG_CONFIG_HOME/proselint/config.json`.
1 parent 6fc3755 commit a086665

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

proselint/config/paths.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,10 @@ def _get_xdg_path(env_var: str, default: Path) -> Path:
1717
return Path(xdg_path) if (xdg_path := os.environ.get(env_var)) else default
1818

1919

20-
config_global_path = Path("/etc/proselintrc")
2120
config_user_path = _get_xdg_path(XDG_CONFIG_VAR, home_path / ".config")
2221

2322
config_paths = [
2423
# NOTE: This is in reverse priority order - the order config gets merged in
25-
config_global_path,
26-
home_path / ".proselintrc.json",
2724
config_user_path / "proselint" / "config.json",
2825
cwd / ".proselintrc.json",
2926
]

0 commit comments

Comments
 (0)