Skip to content

added ruff linter and remove few old test cases - #246

Open
AQIB-NAWAB wants to merge 2 commits into
c2siorg:mainfrom
AQIB-NAWAB:chore/ruff-and-skip-legacy-tests
Open

added ruff linter and remove few old test cases#246
AQIB-NAWAB wants to merge 2 commits into
c2siorg:mainfrom
AQIB-NAWAB:chore/ruff-and-skip-legacy-tests

Conversation

@AQIB-NAWAB

@AQIB-NAWAB AQIB-NAWAB commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Description

Added Ruff linter for api-service, ingestion-service and notification-service. Removed 2 old test files (unitTest.py and unitTest_cybernews.py) from monolith. Also added pytest in api-service requirements.

Related Issue

#245

Motivation and Context

No linter was there. Old tests were failing on /news route and live scraper which we don't use now.

How Has This Been Tested?

Use the ruff check command in each service to check the linter.

image

and manually running test cases inside each service.

image

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Gives a local lint/test baseline for the three services so CI can
reuse the same commands. Drops unitTest.py files that still hit
old /news routes and the live CSS scraper.
@AQIB-NAWAB

Copy link
Copy Markdown
Contributor Author

Hi @hardik1408 , please, I have added linter and validate all test casses. please review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant