diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c0c79f1..4a809e8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -48,6 +48,6 @@ jobs: - name: Install ruff run: python -m pip install ruff - name: Run ruff check - run: ruff check --select F,E,W,I,UP,COM --target-version py310 . + run: ruff check --select F,E,W,I,UP,A,COM --target-version py310 . - name: Run ruff format run: ruff format --diff . diff --git a/docs/conf.py b/docs/conf.py index 8cbe8b7..a4025aa 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -28,7 +28,7 @@ # General information about the project. project = "Python-Markups" -copyright = "2024, Dmitry Shachnev" +copyright = "2024, Dmitry Shachnev" # noqa: A001 # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the diff --git a/markup2html.py b/markup2html.py index d24e588..d90c0e1 100755 --- a/markup2html.py +++ b/markup2html.py @@ -8,8 +8,8 @@ def export_file(args: argparse.Namespace) -> None: markup = markups.get_markup_for_file_name(args.input_file) - with open(args.input_file) as input: - text = input.read() + with open(args.input_file) as fp: + text = fp.read() if not markup: sys.exit("Markup not available.") converted = markup.convert(text)