Skip to content

Commit

Permalink
noqa fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
martinburchell committed Jan 10, 2025
1 parent bac3b20 commit 08bf0cf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ repos:
rev: v1.5.0
hooks:
- id: yesqa
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.9.0
hooks:
- id: python-check-blanket-noqa
2 changes: 1 addition & 1 deletion crate_anon/nlp_webserver/print_demos.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def demo_config() -> str:
use = egg:waitress#main
listen = localhost:6543
""" # noqa:E501
""" # noqa: E501


def demo_processors() -> str:
Expand Down
2 changes: 1 addition & 1 deletion crate_anon/preprocess/postcodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2222,7 +2222,7 @@ def dict_from_rows(
# openpyxl BUG: with read_only=True, cells can have None as their value
# when they're fine if opened in non-read-only mode.
# May be related to this:
# https://bitbucket.org/openpyxl/openpyxl/issues/601/read_only-cell-row-column-attributes-are # noqa
# https://bitbucket.org/openpyxl/openpyxl/issues/601/read_only-cell-row-column-attributes-are

# Assume the first sheet is the one with the data in it.
# Choosing the active sheet is unreliable for some files.
Expand Down
2 changes: 1 addition & 1 deletion tools/make_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ def workpath(destpath: str, *args: str) -> str:
startsecs = 10
stopwaitsecs = 60
""", # noqa:E501
""", # noqa: E501
file=outfile,
)

Expand Down

0 comments on commit 08bf0cf

Please sign in to comment.