Skip to content

Commit

Permalink
Enable ruff flake8-builtins (A) checks
Browse files Browse the repository at this point in the history
  • Loading branch information
mitya57 committed Dec 8, 2024
1 parent 85fb72f commit bb4bd56
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions markup2html.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bb4bd56

Please sign in to comment.