Add linting infrastructure with Ruff, ESLint, and Prettier#199
Add linting infrastructure with Ruff, ESLint, and Prettier#199
Conversation
Fixed all 47 ESLint errors in commit 68e7538. Changes include:
Result: 0 errors, 58 warnings (only unused variable warnings remaining, which are non-critical) |
|
@copilot can you fix the unused variable warnings as well? |
Fixed all 58 unused variable warnings in commit d0ed7da. Changes include:
Result: 0 errors, 0 warnings - completely clean ESLint output! |
…nt/Prettier) Co-authored-by: lstein <111189+lstein@users.noreply.github.com>
d0ed7da to
ee9405c
Compare
|
@copilot I am getting pytest errors about the fixture |
…nto conftest.py Co-authored-by: lstein <111189+lstein@users.noreply.github.com>
Fixed the pytest fixture discovery issue in commit a2d9938. The problem was that the Added the import statement to from fixtures import client, new_album # noqa: F401This makes the fixtures available to all test files in the |
CI/CD: Add frontend and backend linting tools
Implementation Complete ✅
Backend Linting (Ruff)
ruff check photomap testsworks correctly and identifies linting issuesFrontend Linting (ESLint & Prettier)
Code Fixes
Pytest Fixture Fix
clientandnew_albumfixtures intoconftest.pyMakefile Updates
backend-linttarget - runs Ruff on Python codefrontend-linttarget - runs ESLint and Prettier check on JavaScriptlinttarget - runs both backend and frontend lintingmake backend-lintworks correctlyGitHub Actions Workflow
Testing Results
clientfixtureSummary
This PR implements comprehensive linting infrastructure for both Python backend (Ruff) and JavaScript frontend (ESLint + Prettier), with Makefile targets and GitHub Actions CI/CD integration. All linting issues have been resolved, and pytest fixture discovery has been fixed, providing a clean foundation for code quality enforcement.
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.