Errors detected in .deepsource.toml
.
1512 def test_sphinx_builder_default(self):
1513 build = self.get_build_config({})
1514 build.validate()
1515 build.sphinx.builder == 'sphinx'1516
1517 def test_sphinx_builder_ignores_default(self):
1518 build = self.get_build_config(
1520 {'defaults': {'doctype': 'sphinx_singlehtml'}},
1521 )
1522 build.validate()
1523 build.sphinx.builder == 'sphinx'1524
1525 def test_sphinx_configuration_check_valid(self, tmpdir):
1526 apply_fs(tmpdir, {'conf.py': ''})
75 # By accessing `request.body` we are able to access `request.body` and
76 # `request.data` later without any problem (mostly black magic).
77 # See #4940 for more background.
78 self.request.body # noqa 79 self.project = None
80 self.data = self.get_data()
81 try:
The expression or statement is pointless and will not affect the program's execution. It should be removed.
It is recommended to remove the statement as it adds unnecessary complexity to the codebase.
x = input()
x == 3 # Line doesn't do anything, it can be safely removed
calculate_res(x)
x = input()
calculate_res(x)