[PR #355] ci: add root .editorconfig and centralize lint configs under .github/config #660

Open
opened 2026-03-13 21:02:23 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/AJaySi/ALwrity/pull/355
Author: @AJaySi
Created: 2/13/2026
Status: 🔄 Open

Base: mainHead: codex/add-comprehensive-linting-to-github-workflow


📝 Commits (10+)

  • db50935 Documentation updates and scheduler dashboard improvements
  • 531d027 Remove large generated media files from Git tracking
  • 328ac7d Added Backlinking feature
  • 397e926 Refactor Image Studio, Video Studio, Backlinking, Scheduler Dashboard, YouTube Router, and Story Writer.
  • bd6e0cb Backlinking AI Enhancement Complete.
  • 6d51cab feat: Complete Competitor Analyzer Refactoring + Week 1-2 Immediate Wins
  • ef31895 Apply essential SSOT PostgreSQL architecture - dual database with backward compatibility
  • 4a8f3ed Complete PostgreSQL-only architecture with SQLite removal
  • 7bba595 Fix DATABASE_URL references to use dual PostgreSQL architecture
  • 9ed791f Fix PostgreSQL JSON index error in content_assets table

📊 Changes

852 files changed (+151379 additions, -10661 deletions)

View changed files

.editorconfig (+13 -0)
📝 .github/README.md (+46 -21)
.github/config/commitlint.config.cjs (+19 -0)
.github/config/editorconfig (+12 -0)
.github/config/pre-commit-config.yaml (+30 -0)
.github/config/pylintrc (+20 -0)
.github/config/pyproject.toml (+14 -0)
.github/config/stylelintrc.json (+13 -0)
.github/workflows/lint.yml (+109 -0)
📝 .gitignore (+18 -0)
IMAGE_STUDIO_REVIEW.md (+80 -0)
ToBeMigrated/legacy_backlinker/App.css (+42 -0)
ToBeMigrated/legacy_backlinker/App.tsx (+31 -0)
ToBeMigrated/legacy_backlinker/assets/ai-brain-icon.png (+0 -0)
ToBeMigrated/legacy_backlinker/assets/neural-network-hero.jpg (+0 -0)
ToBeMigrated/legacy_backlinker/components/comparison-section.tsx (+103 -0)
ToBeMigrated/legacy_backlinker/components/dashboard-preview.tsx (+201 -0)
ToBeMigrated/legacy_backlinker/components/dashboard/analytics-summary.tsx (+109 -0)
ToBeMigrated/legacy_backlinker/components/dashboard/collaboration-tracker.tsx (+271 -0)
ToBeMigrated/legacy_backlinker/components/dashboard/dashboard-header.tsx (+42 -0)

...and 80 more files

📄 Description

Motivation

  • Ensure editors auto-discover project formatting rules by adding a root .editorconfig shim so contributor tooling works out of the box.
  • Keep CI and lint configuration centralized under .github/config/ to make workflows and hooks reference a single location.
  • Provide a unified GitHub Actions workflow to run frontend and Python linters and pre-commit hooks against the repository.

Description

  • Added a root-level /.editorconfig to surface formatting rules to editors and IDEs without changing CI logic.
  • Added centralized lint configuration files under .github/config/: commitlint.config.cjs, editorconfig, pre-commit-config.yaml, pylintrc, pyproject.toml, and stylelintrc.json.
  • Added a new workflow /.github/workflows/lint.yml that runs Commitlint, ESLint/Stylelint for frontend, Ruff/Pylint for backend, pre-commit hooks, and a Gitleaks scan.
  • Configured the pre-commit hook entries and linter invocations to reference the files under .github/config/ (for example --config .github/config/pyproject.toml and --rcfile=.github/config/pylintrc).

Testing

  • Verified file contents and differences with nl -ba .editorconfig and nl -ba .github/config/editorconfig, which displayed the expected root shim and preserved centralized copy.
  • Inspected repository state with git status --short, which showed the new files staged as expected.
  • Committed the changes with git add .editorconfig && git commit -m "ci: add root editorconfig for out-of-box editor support", and the commit succeeded.
  • Generated PR metadata via the internal make_pr helper, which completed successfully.

Codex Task


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/AJaySi/ALwrity/pull/355 **Author:** [@AJaySi](https://github.com/AJaySi) **Created:** 2/13/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `codex/add-comprehensive-linting-to-github-workflow` --- ### 📝 Commits (10+) - [`db50935`](https://github.com/AJaySi/ALwrity/commit/db509355712b9d5e8faaa7b2c0243e1e240b92e6) Documentation updates and scheduler dashboard improvements - [`531d027`](https://github.com/AJaySi/ALwrity/commit/531d027f1b1a2904a37ef752b6a91a68eb57a9af) Remove large generated media files from Git tracking - [`328ac7d`](https://github.com/AJaySi/ALwrity/commit/328ac7d711b896cfe319db56962b6968954d3dfd) Added Backlinking feature - [`397e926`](https://github.com/AJaySi/ALwrity/commit/397e926eb74e83ff8d90b140d7ef6ec6b888fdcc) Refactor Image Studio, Video Studio, Backlinking, Scheduler Dashboard, YouTube Router, and Story Writer. - [`bd6e0cb`](https://github.com/AJaySi/ALwrity/commit/bd6e0cb611c4868d103546e2da9a344c9994cce5) Backlinking AI Enhancement Complete. - [`6d51cab`](https://github.com/AJaySi/ALwrity/commit/6d51cab6fba84692839fb950f6151d152002ab00) feat: Complete Competitor Analyzer Refactoring + Week 1-2 Immediate Wins - [`ef31895`](https://github.com/AJaySi/ALwrity/commit/ef318955a3dd9203ab51bee366586a0803e65cd5) Apply essential SSOT PostgreSQL architecture - dual database with backward compatibility - [`4a8f3ed`](https://github.com/AJaySi/ALwrity/commit/4a8f3ed68b7fed8546716b8561b97249cfe4ee6f) Complete PostgreSQL-only architecture with SQLite removal - [`7bba595`](https://github.com/AJaySi/ALwrity/commit/7bba595cf37c59f26742abf421c0c929a93c51be) Fix DATABASE_URL references to use dual PostgreSQL architecture - [`9ed791f`](https://github.com/AJaySi/ALwrity/commit/9ed791f00f8d7b57acbb680697957c3589b186c8) Fix PostgreSQL JSON index error in content_assets table ### 📊 Changes **852 files changed** (+151379 additions, -10661 deletions) <details> <summary>View changed files</summary> ➕ `.editorconfig` (+13 -0) 📝 `.github/README.md` (+46 -21) ➕ `.github/config/commitlint.config.cjs` (+19 -0) ➕ `.github/config/editorconfig` (+12 -0) ➕ `.github/config/pre-commit-config.yaml` (+30 -0) ➕ `.github/config/pylintrc` (+20 -0) ➕ `.github/config/pyproject.toml` (+14 -0) ➕ `.github/config/stylelintrc.json` (+13 -0) ➕ `.github/workflows/lint.yml` (+109 -0) 📝 `.gitignore` (+18 -0) ➕ `IMAGE_STUDIO_REVIEW.md` (+80 -0) ➕ `ToBeMigrated/legacy_backlinker/App.css` (+42 -0) ➕ `ToBeMigrated/legacy_backlinker/App.tsx` (+31 -0) ➕ `ToBeMigrated/legacy_backlinker/assets/ai-brain-icon.png` (+0 -0) ➕ `ToBeMigrated/legacy_backlinker/assets/neural-network-hero.jpg` (+0 -0) ➕ `ToBeMigrated/legacy_backlinker/components/comparison-section.tsx` (+103 -0) ➕ `ToBeMigrated/legacy_backlinker/components/dashboard-preview.tsx` (+201 -0) ➕ `ToBeMigrated/legacy_backlinker/components/dashboard/analytics-summary.tsx` (+109 -0) ➕ `ToBeMigrated/legacy_backlinker/components/dashboard/collaboration-tracker.tsx` (+271 -0) ➕ `ToBeMigrated/legacy_backlinker/components/dashboard/dashboard-header.tsx` (+42 -0) _...and 80 more files_ </details> ### 📄 Description ### Motivation - Ensure editors auto-discover project formatting rules by adding a root ` .editorconfig` shim so contributor tooling works out of the box. - Keep CI and lint configuration centralized under `.github/config/` to make workflows and hooks reference a single location. - Provide a unified GitHub Actions workflow to run frontend and Python linters and pre-commit hooks against the repository. ### Description - Added a root-level `/.editorconfig` to surface formatting rules to editors and IDEs without changing CI logic. - Added centralized lint configuration files under `.github/config/`: `commitlint.config.cjs`, `editorconfig`, `pre-commit-config.yaml`, `pylintrc`, `pyproject.toml`, and `stylelintrc.json`. - Added a new workflow `/.github/workflows/lint.yml` that runs Commitlint, ESLint/Stylelint for `frontend`, Ruff/Pylint for `backend`, pre-commit hooks, and a Gitleaks scan. - Configured the pre-commit hook entries and linter invocations to reference the files under `.github/config/` (for example `--config .github/config/pyproject.toml` and `--rcfile=.github/config/pylintrc`). ### Testing - Verified file contents and differences with `nl -ba .editorconfig` and `nl -ba .github/config/editorconfig`, which displayed the expected root shim and preserved centralized copy. - Inspected repository state with `git status --short`, which showed the new files staged as expected. - Committed the changes with `git add .editorconfig && git commit -m "ci: add root editorconfig for out-of-box editor support"`, and the commit succeeded. - Generated PR metadata via the internal `make_pr` helper, which completed successfully. ------ [Codex Task](https://chatgpt.com/codex/tasks/task_e_698ef07150008328903f16f369a82938) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ALwrity#660
No description provided.