Skip to content

Commit 04cd5d3

Browse files
committed
Add linting workflow and update pre-commit configuration
- Introduced a new workflow for converting TODOs to GitHub issues. - Updated lint.yml to include TODOs for fixing TSX and jscpd linter errors. - Modified pre-commit configuration to include JSON in prettier types. - Added .prettierignore file to exclude renovate.json from formatting.
1 parent dc54619 commit 04cd5d3

4 files changed

Lines changed: 28 additions & 3 deletions

File tree

.github/workflows/lint.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,10 @@ jobs:
3838
VALIDATE_HTML_PRETTIER: false
3939
VALIDATE_NATURAL_LANGUAGE: false
4040
VALIDATE_PYTHON_FLAKE8: false
41+
# TODO: fix tsx linter errors
4142
VALIDATE_TSX: false
42-
43-
# VALIDATE_JSCPD: false
43+
# TODO: fix jscpd linter errors
44+
VALIDATE_JSCPD: false
4445
# VALIDATE_MARKDOWN_PRETTIER: false
4546
# VALIDATE_PYTHON_MYPY: false
4647
# VALIDATE_PYTHON_PYLINT: false
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: "Run Todo to Issue"
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
9+
permissions:
10+
contents: read
11+
issues: write
12+
13+
jobs:
14+
run:
15+
name: "Run Todo to Issue"
16+
runs-on: "ubuntu-24.04"
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
20+
- name: "TODO to Issue"
21+
uses: "alstr/todo-to-issue-action@v5"
22+
with:
23+
AUTO_ASSIGN: false

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ repos:
6969
rev: "v3.7.4"
7070
hooks:
7171
- id: prettier
72-
types_or: [markdown, yaml]
72+
types_or: [markdown, yaml, json]
7373

7474
- repo: https://github.com/pre-commit/mirrors-mypy
7575
rev: "v1.19.1" # Use the sha / tag you want to point at

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
renovate.json

0 commit comments

Comments
 (0)