Skip to content

Commit

Permalink
Fix/ignore all remaining errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tronic committed Oct 25, 2023
1 parent 9ae25e6 commit ec35f5f
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
root_directory = os.path.dirname(os.getcwd())
sys.path.insert(0, root_directory)

import sanic
import sanic # noqa: E402


# -- General configuration ------------------------------------------------
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[tool.ruff]
line-length = 79
extend-select = ["I"]
ignore = ["D100", "D101", "D102", "D103", "E402", "E741", "F811", "F821"]
line-length = 79
show-source = true
show-fixes = true

[tool.ruff.isort]
known-first-party = ["sanic"]
Expand Down
2 changes: 1 addition & 1 deletion scripts/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def _run_shell_command(command: list):
output, error = process.communicate()
return_code = process.returncode
return output.decode("utf-8"), error, return_code
except:
except Exception:
return None, None, -1


Expand Down
2 changes: 1 addition & 1 deletion tests/test_exceptions_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def import_error_handler():
pass

try:
ModuleNotFoundError
ModuleNotFoundError # noqa: F823
except Exception:

class ModuleNotFoundError(ImportError):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_ext_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


try:
import sanic_ext
import sanic_ext # noqa: F401

SANIC_EXT_IN_ENV = True
except ImportError:
Expand Down

0 comments on commit ec35f5f

Please sign in to comment.