Skip to content

Commit

Permalink
python linting
Browse files Browse the repository at this point in the history
  • Loading branch information
lawrence-forooghian committed Jul 25, 2024
1 parent 31e5014 commit 482399f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,24 @@ jobs:
steps:
# Set up
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: "20" # Oldest LTS at time of writing

- uses: actions/setup-python@v5
with:
python-version: "3.x"

- run: npm ci
- run: pip install mitmproxy ruff mypy

# Run checks
# Run JS checks
- run: npm run format:check
- run: npm run lint:check
- run: npm run build

# Run Python checks
- run: ruff format --check
- run: ruff check
- run: mypy
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[tool.mypy]
files = "src/python/**/*.py"
strict = true

0 comments on commit 482399f

Please sign in to comment.