Skip to content

Commit 6f99cac

Browse files
committed
[ci] Exclude node_modules from Black and RST checks
- Added pyproject.toml with Black config to exclude node_modules - Modified run-qa-checks to skip RST check in openwisp-qa-check and run it separately with node_modules excluded
1 parent f12b340 commit 6f99cac

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[tool.black]
2+
extend-exclude = '''
3+
/(node_modules|\.venv|venv)/
4+
'''

run-qa-checks

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@ openwisp-qa-check \
1414
--skip-checkmigrations \
1515
--skip-checkmakemigrations \
1616
--skip-checkendline \
17+
--skip-checkrst
18+
19+
# Run RST check separately with node_modules excluded
20+
docstrfmt --no-docstring-trailing-line -c -l 74 -s "=-~+^\"'.:" --extend-exclude node_modules .

0 commit comments

Comments
 (0)