Skip to content

Commit

Permalink
style: format code with Black
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in e861b3e according to the output
from Black.

Details: None
  • Loading branch information
deepsource-autofix[bot] authored Dec 5, 2023
1 parent e861b3e commit 4c97d02
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Initialize PyPI Package"""
#pylint: disable=import-error, invalid-name
# pylint: disable=import-error, invalid-name

from main import craftclash

Expand Down
2 changes: 1 addition & 1 deletion __main__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Main entry point for the CraftClash application."""
#pylint: disable=import-error, invalid-name
# pylint: disable=import-error, invalid-name

from main import craftclash

Expand Down
4 changes: 3 additions & 1 deletion craftclash/tests/test_aboutscreen.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Test the AboutScreen class in aboutscreen.py."""
#pylint: disable=import-error, invalid-name
# pylint: disable=import-error, invalid-name

# Get out of the test directory
import os
Expand All @@ -11,8 +11,10 @@
parent_dir = os.path.dirname(current_dir)
sys.path.append(os.path.join(parent_dir))


class TestAboutScreen(unittest.TestCase):
"""Test the AboutScreen class in aboutscreen.py."""

def setUp(self):
"""Set up the test."""
self.about_screen = aboutscreen()
Expand Down
3 changes: 2 additions & 1 deletion craftclash/tests/test_optionscreen.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Test the OptionScreen class in optionscreen.py."""
#pylint: disable=import-error, invalid-name
# pylint: disable=import-error, invalid-name

# Get out of the test directory
import os
Expand All @@ -14,6 +14,7 @@

class TestOptionScreen(unittest.TestCase):
"""Test the OptionScreen class in optionscreen.py."""

def setUp(self):
"""Set up the test."""
self.option_screen = optionsscreen()
Expand Down
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
#pylint: disable=import-error, invalid-name
# pylint: disable=import-error, invalid-name

# Main program window.

Expand Down Expand Up @@ -82,5 +82,6 @@ def craftclash():
window.mainloop()
return window


if __name__ == "__main__":
craftclash()
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Setup file for Craft Clash."""
#pylint: disable=import-error, invalid-name
# pylint: disable=import-error, invalid-name

from setuptools import setup, find_packages

Expand Down
3 changes: 2 additions & 1 deletion tests/test_main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Test the main.py file."""
#pylint: disable=import-error, invalid-name
# pylint: disable=import-error, invalid-name

# Get out of the test directory
import os
Expand All @@ -14,6 +14,7 @@

class TestCraftClash(unittest.TestCase):
"""Test the CraftClash class in main.py."""

def setUp(self):
"""Set up the test."""
self.app = craftclash()
Expand Down

0 comments on commit 4c97d02

Please sign in to comment.