Skip to content

Commit

Permalink
Apply ruff fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedThree committed Feb 27, 2024
1 parent b29d3c5 commit db36a22
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion ford/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ def convert_types_from_commandarguments(
field_types = get_type_hints(type(settings))

for key, value in cargs.items():
if value != None:
if value is not None:
if key in field_types:
setattr(settings, key, convert_setting(field_types[key], key, value))
else:
Expand Down
1 change: 0 additions & 1 deletion test/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import copy
import ford
import pathlib
import pytest
Expand Down
2 changes: 0 additions & 2 deletions test/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
import ford.sourceform

from itertools import chain
from os.path import relpath
import pathlib

import pytest
from bs4 import BeautifulSoup
Expand Down
1 change: 0 additions & 1 deletion test/test_projects/test_external_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import sys
import os
import pathlib
import copy
from urllib.parse import urlparse
import json
from typing import Dict, Any
Expand Down

0 comments on commit db36a22

Please sign in to comment.