aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rwxr-xr-xlater4
-rw-r--r--ruff.toml4
2 files changed, 6 insertions, 2 deletions
diff --git a/later b/later
index 5b82a6e..a5a25c8 100755
--- a/later
+++ b/later
@@ -25,8 +25,8 @@ def exit(message=""):
sys.exit(f"later: {message}" if message else 0)
-def get_xdg(type, fallback):
- env = f"XDG_{type.upper()}_HOME"
+def get_xdg(directory, fallback):
+ env = f"XDG_{directory.upper()}_HOME"
if env in os.environ:
return os.environ[env]
return os.path.expanduser(fallback)
diff --git a/ruff.toml b/ruff.toml
index 2a53694..d00d37e 100644
--- a/ruff.toml
+++ b/ruff.toml
@@ -8,7 +8,11 @@ select = [
"W", # pycodestyle
"I", # isort
"UP", # pyupgrade
+ "A", # flake8-builtins
"B", # flake8-bugbear
"SIM", # flake8-simplify
"FURB" # refurb
]
+
+[lint.flake8-builtins]
+builtins-ignorelist = ["exit"]