diff --git a/ford/settings.py b/ford/settings.py index 97c4bdb8..223c7aae 100644 --- a/ford/settings.py +++ b/ford/settings.py @@ -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: diff --git a/test/conftest.py b/test/conftest.py index 63aed84b..a5771873 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -1,4 +1,3 @@ -import copy import ford import pathlib import pytest diff --git a/test/test_project.py b/test/test_project.py index dca58e3b..46a614bb 100644 --- a/test/test_project.py +++ b/test/test_project.py @@ -12,8 +12,6 @@ import ford.sourceform from itertools import chain -from os.path import relpath -import pathlib import pytest from bs4 import BeautifulSoup diff --git a/test/test_projects/test_external_project.py b/test/test_projects/test_external_project.py index 26caa6d3..78a3260d 100644 --- a/test/test_projects/test_external_project.py +++ b/test/test_projects/test_external_project.py @@ -2,7 +2,6 @@ import sys import os import pathlib -import copy from urllib.parse import urlparse import json from typing import Dict, Any