Skip to content

Commit

Permalink
added
Browse files Browse the repository at this point in the history
  • Loading branch information
sailajakommineni committed Nov 16, 2023
1 parent 711c885 commit 94fdeb3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/spellcheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
pull_request:
paths:
- "README.md" # provide name of the file or folder

env:
SPELL_CHECK_DISABLED: false
GRAMMAR_CHECK_DISABLED: false

jobs:
check-spelling-and-grammar:
runs-on: ubuntu-latest
Expand All @@ -23,15 +28,17 @@ jobs:
- uses: actions/checkout@v2
- name: Spellcheck
if: ${{ env.SPELL_CHECK_DISABLED == 'false' }}
uses: rojopolis/[email protected]
with:
config_path: .github/.spellcheck.yaml
source_files: "README.md" # name of the file to check spell
task_name: Markdown
# To check the grammatical mistakes of the given files and folders.
- name: Run grammar check
if: ${{ env.GRAMMAR_CHECK_DISABLED == 'false' }}
run: |
import pylanguagetool
from language_tool_python import LanguageTool
# Initialize LanguageTool
tool = pylanguagetool.LanguageTool('en-US') # You can specify the language you want to check.
Expand Down

0 comments on commit 94fdeb3

Please sign in to comment.