Skip to content

Commit

Permalink
Merge pull request #96 from MIT-Emerging-Talent/fixing_ruff_errors
Browse files Browse the repository at this point in the history
Modfification to ensure all files pass CI Checks
  • Loading branch information
Mohamedmxz authored Jan 12, 2025
2 parents a2920af + 50ef5f1 commit 9776e3f
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 8 deletions.
4 changes: 2 additions & 2 deletions solutions/arithmetic_sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
A module for generating a sequence for arithmetic numbers
Module contents:
- arithmetic_sequence:generating a sequence of n arithmetic numbers.
-arithmetic_sequence:generating a sequence of n arithmetic numbers.
Created on Sunday/22/December/2024
Created on Sunday 22/December/2024
@author:Mayar Ali
"""

Expand Down
3 changes: 2 additions & 1 deletion solutions/armstrong_checker.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Module checks if a number is an Armstrong number.
"""
Module checks if a number is an Armstrong number.
Created on 2025-01-02
Author: Ahmed
"""
Expand Down
1 change: 1 addition & 0 deletions solutions/copy_from_file_to_file.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/user/bin/env python3
# *-* coding: utf-8 *-*
"""
This module copies content from one file to another.
Module contents:
Expand Down
2 changes: 1 addition & 1 deletion solutions/game_greeting.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
the module provides a function that generates a welcome message for a player joining a game.
Author: Mohamed Tilal
Created date: 6.1.2025
Created date: 6/1/2025
"""
# the function:

Expand Down
2 changes: 1 addition & 1 deletion solutions/tests/test_arithmetic_sequence.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Monday/30/December/2024
Created on Monday 30/December/2024
@author:Mayar Ali
"""

Expand Down
3 changes: 3 additions & 0 deletions solutions/tests/test_copy_from_file_to_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
Raises:
AssertionError: If the source file does not exist
AssertionError: If the source or destination file is not a .txt file
Created on: 22-December-2024
@Author: Saja AbuSafia
"""

import unittest
Expand Down
4 changes: 4 additions & 0 deletions solutions/tests/test_fuel_gauge.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Testing the functin fuel_gauge
"""

import unittest

from ..fuel_gauge import fuel_gauge
Expand Down
1 change: 0 additions & 1 deletion solutions/tests/test_game_greeting.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
test_game_greeting.py
this module contains unit tests for the 'game_greeting' function.
"""

import unittest
Expand Down
2 changes: 1 addition & 1 deletion solutions/tests/test_is_anagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- Edge cases: empty strings, equal lengths
- Defensive tests: invalid inputs
Created on 2024-01-02
Created on: 2024-01-02
Author: Reem Osama
"""

Expand Down
1 change: 1 addition & 0 deletions solutions/tests/test_word_count_from_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- Word count for a file with multiple lines.
- Assertion errors for non-existent files.
- Assertion errors for non-.txt files.
"""

import unittest
Expand Down
2 changes: 1 addition & 1 deletion solutions/word_count_from_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- Input: `.txt` file to read the content from.
- Output: Total number of words in the file.
Created on 30 Dec 2024
Created on 30-Dec-2024
@author: Saja Abusafia
"""

Expand Down

0 comments on commit 9776e3f

Please sign in to comment.