From 4b280d9e1fce2adce817fefe0fbe7960a2c867a8 Mon Sep 17 00:00:00 2001 From: Markus Hofbauer Date: Thu, 12 May 2022 14:07:49 +0200 Subject: [PATCH] fix flake8 warnings --- build.py | 2 +- conanfile.py | 1 + docs/conf.py | 7 ++----- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/build.py b/build.py index c397b944..e3bc1a56 100644 --- a/build.py +++ b/build.py @@ -38,7 +38,7 @@ if __name__ == "__main__": upload_dependencies="all", pip_install=["sphinx", "recommonmark", "breathe"], # build configurations - archs=["x86_64"], # limit to 64-bit only + archs=["x86_64"], # limit to 64-bit only ) builder.add_common_builds(pure_c=True) for settings, options, env_vars, build_requires, reference in builder.items: diff --git a/conanfile.py b/conanfile.py index a2189cd9..0c821dcd 100644 --- a/conanfile.py +++ b/conanfile.py @@ -27,6 +27,7 @@ from conan import ConanFile from conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain from conan.tools.files import copy, load, rmdir from conan.tools.scm import Version +from conans.errors import ConanInvalidConfiguration from conans.tools import ( # TODO replace with new tools for Conan 2.0 check_min_cppstd, get_env, diff --git a/docs/conf.py b/docs/conf.py index 9c997601..54aa719b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -9,9 +9,10 @@ :license: BSD, see LICENSE for details. """ +import os import re +import subprocess -import sphinx_rtd_theme from pygments.lexer import ( RegexLexer, bygroups, @@ -482,10 +483,6 @@ lexers["cpp"] = MyCppLexer(startinline=True) # For a full list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html -import os -import re -import subprocess - def get_version(): try: