Skip to content

Commit

Permalink
Lint code in Github
Browse files Browse the repository at this point in the history
Enable actions in Github on push, pull request, etc.
  • Loading branch information
nikobockerman committed Dec 7, 2023
1 parent e279777 commit a569f06
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"extensions": [
"charliermarsh.ruff",
"editorconfig.editorconfig",
"github.vscode-github-actions",
"ms-python.black-formatter",
"ms-python.mypy-type-checker"
],
Expand Down
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ charset = utf-8
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.{yml,yaml}]
indent_size = 2
24 changes: 24 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Run verifications

on:
check_run:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- uses: actions/setup-python@v4
with:
python-version: '3.12'
cache: 'poetry'
- run: poetry install
- run: poetry run poe lint

0 comments on commit a569f06

Please sign in to comment.