Skip to content

Commit

Permalink
lint / cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
n8henrie committed May 13, 2024
1 parent 4eb2aa6 commit 3abd498
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/pycookiecheat/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,16 @@ def main() -> None:
"-v",
action="count",
default=0,
help="Increase logging verbosity (may repeat), default is `logging.ERROR`",
help=(
"Increase logging verbosity (may repeat), default is "
"`logging.ERROR`"
),
)
args = parser.parse_args()

# todo: make this a match statement once MSPV is 3.10
logging.basicConfig(level=max(logging.ERROR - 10 * args.verbose, 0))

# todo: make this a match statement once MSPV is 3.10
browser = BrowserType(args.browser)

# Use separate function calls to make it easier to add other command line
Expand Down
2 changes: 1 addition & 1 deletion tests/test_chrome.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def ci_setup() -> t.Generator:
ignore_default_args=[
"--use-mock-keychain",
],
executable_path=ex_path, # type: ignore
executable_path=ex_path,
)
page = browser.new_page()
page.goto("https://n8henrie.com")
Expand Down

0 comments on commit 3abd498

Please sign in to comment.