aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/os.py
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-23 18:10:36 +0200
committerEgor Tensin <egor@tensin.name>2026-06-23 18:10:36 +0200
commitdb93568d9f8423c4fe6399562f13fa54f7c96494 (patch)
treee5543032f89706d0afb3a3c9f777ba1aa14e2620 /project/os.py
parentworkflows/aur: inherit secrets (diff)
downloadcmake-common-db93568d9f8423c4fe6399562f13fa54f7c96494.tar.gz
cmake-common-db93568d9f8423c4fe6399562f13fa54f7c96494.zip
use default settings for Black
Diffstat (limited to 'project/os.py')
-rw-r--r--project/os.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/project/os.py b/project/os.py
index 1d35fb9..398f4b2 100644
--- a/project/os.py
+++ b/project/os.py
@@ -8,9 +8,9 @@ import platform
class OS(Enum):
- WINDOWS = 'Windows'
- LINUX = 'Linux'
- MACOS = 'macOS'
+ WINDOWS = "Windows"
+ LINUX = "Linux"
+ MACOS = "macOS"
def __str__(self):
return str(self.value)
@@ -19,12 +19,12 @@ class OS(Enum):
def current():
system = platform.system()
mapping = {
- 'Windows': OS.WINDOWS,
- 'Linux': OS.LINUX,
- 'Darwin': OS.MACOS,
+ "Windows": OS.WINDOWS,
+ "Linux": OS.LINUX,
+ "Darwin": OS.MACOS,
}
if system not in mapping:
- raise NotImplementedError(f'unsupported OS: {system}')
+ raise NotImplementedError(f"unsupported OS: {system}")
return mapping[system]