Skip to content

Commit

Permalink
fix: apply linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pyoor committed Dec 9, 2023
1 parent 7e05366 commit c5a9906
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 45 deletions.
4 changes: 2 additions & 2 deletions bugmon/bug.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@ def central_version(self) -> int:
return self._central_version

@property
def commands(self) -> Dict[str, Optional[str]]:
def commands(self) -> Dict[str, str | None]:
"""Attempt to extract commands from whiteboard"""
commands = {}
commands: dict[str, str | None] = {}
if self._bug["whiteboard"]:
match = re.search(r"(?<=\[bugmon:)[^]]+", self._bug["whiteboard"])
if match is not None:
Expand Down
84 changes: 41 additions & 43 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ requires = ["poetry>=1.0.8"]

[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"pragma: no cover"
]

[tool.coverage.run]
omit = [
"*/setup.py",
"*/tests/*",
"*/build/*",
"*/dist/*",
"*/.tox/*",
"*/.egg/*",
"*/.egg/*",
"*/.tox/*",
"*/build/*",
"*/dist/*",
"*/setup.py",
"*/tests/*"
]

[tool.isort]
Expand All @@ -24,33 +24,31 @@ profile = "black"

[tool.mypy]
disallow_subclassing_any = "False"
exclude = "^.*tests.*$"
ignore_missing_imports = "True"
implicit_reexport = "True"
strict = "True"

[tool.poetry]
authors = [
"Christian Holler <choller@mozilla.com>",
"Jason Kratzer <jkratzer@mozilla.com>"
"Christian Holler <choller@mozilla.com>",
"Jason Kratzer <jkratzer@mozilla.com>"
]
classifiers = [
"Intended Audience :: Developers",
"Topic :: Software Development :: Testing",
"Topic :: Security",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",

"Intended Audience :: Developers",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Security",
"Topic :: Software Development :: Testing"
]
description = "A python module for analyzing SpiderMonkey and Firefox bugs"
homepage = "https://github.com/MozillaSecurity/bugmon"
keywords = ["fuzz", "fuzzing", "security", "test", "testing", "bisection"]
keywords = ["bisection", "fuzz", "fuzzing", "security", "test", "testing"]
license = "MPL-2.0"
maintainers = [
"Mozilla Fuzzing Team <fuzzing@mozilla.com>"
"Mozilla Fuzzing Team <fuzzing@mozilla.com>"
]
name = "bugmon"
readme = "README.md"
Expand All @@ -59,14 +57,17 @@ version = "3.5.1"

[tool.poetry.dependencies]
autobisect = "^7.4.3"
bugsy = { git = "https://github.com/AutomatedTester/Bugsy.git" }
bugsy = {git = "https://github.com/AutomatedTester/Bugsy.git"}
fuzzfetch = "^2.4.2"
python = "^3.8.1"
typing-extensions = "^4.2.0"

[tool.poetry.group.dev.dependencies]
black = "^23.11.0"
coverage = {extras = ["toml"], version = "^7.2.3"}
flake8 = "^6.1.0"
flake8-isort = "^6.1.1"
flake8-quotes = "^3.3.2"
gitlint = "^0.19.1"
mypy = "^1.7.1"
pre-commit = "^3.5.0"
Expand All @@ -81,9 +82,6 @@ toml = "^0.10.2"
toml-sort = "^0.23.1"
tox = "^4.11.4"
types-requests = "^2.31.0.10"
flake8 = "^6.1.0"
flake8-isort = "^6.1.1"
flake8-quotes = "^3.3.2"

[tool.poetry.scripts]
bugmon = "bugmon.main:main"
Expand All @@ -96,24 +94,24 @@ max-line-length = 88

[tool.pylint.messages_control]
disable = [
"fixme",
"invalid-name",
"line-too-long",
"logging-format-interpolation",
"logging-fstring-interpolation",
"missing-module-docstring",
"missing-return-doc",
"missing-yield-doc",
"too-few-public-methods",
"too-many-arguments",
"too-many-branches",
"too-many-instance-attributes",
"too-many-lines",
"too-many-locals",
"too-many-nested-blocks",
"too-many-return-statements",
"too-many-statements",
"useless-object-inheritance"
"fixme",
"invalid-name",
"line-too-long",
"logging-format-interpolation",
"logging-fstring-interpolation",
"missing-module-docstring",
"missing-return-doc",
"missing-yield-doc",
"too-few-public-methods",
"too-many-arguments",
"too-many-branches",
"too-many-instance-attributes",
"too-many-lines",
"too-many-locals",
"too-many-nested-blocks",
"too-many-return-statements",
"too-many-statements",
"useless-object-inheritance"
]

[tool.pytest.ini_options]
Expand Down

0 comments on commit c5a9906

Please sign in to comment.