From 24433d5c2309894c26dd8e7cbc01f80bf99a9ba8 Mon Sep 17 00:00:00 2001 From: kirbylife Date: Mon, 6 Nov 2023 19:43:29 -0600 Subject: [PATCH] Improve a little bit the code --- nvexpo/__init__.py | 6 +----- pyproject.toml | 6 +++++- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/nvexpo/__init__.py b/nvexpo/__init__.py index 8aa8e3e..b1c94fe 100644 --- a/nvexpo/__init__.py +++ b/nvexpo/__init__.py @@ -3,8 +3,8 @@ import re import sys -from nvexpo import nvexpo from nvexpo import consts as CONSTS +from nvexpo import nvexpo def main() -> int: @@ -17,10 +17,6 @@ def main() -> int: nvexpo.unset_env(args[2:]) return 0 - if args[1] in ["--load"]: - nvexpo._load() - return 0 - if args[1] in ["init"]: try: nvexpo.init(args[2]) diff --git a/pyproject.toml b/pyproject.toml index 7725d62..619bf40 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,7 +41,11 @@ ignore = [ "PLR2004", "FA102", "PLW2901", - "N812" + "N812", + "C901", + "PLR0912", + "D213", + "D211" ] fixable = ["ALL"]