diff --git a/.github/workflows/syntax-check.yml b/.github/workflows/syntax-check.yml new file mode 100644 index 0000000..4826f25 --- /dev/null +++ b/.github/workflows/syntax-check.yml @@ -0,0 +1,27 @@ +name: Syntax Checks + +on: + pull_request: + paths: + - '**.py' + - '**.md' + - '.github/workflows/**' + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.x' + - name: Compile Python files + run: | + python -m py_compile $(git ls-files '*.py') + - name: Install markdownlint + run: | + npm install -g markdownlint-cli + - name: Lint Markdown files + run: | + markdownlint '**/*.md' diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7a60b85 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +__pycache__/ +*.pyc