OctopusET / sway-contrib

A collection of user-contributed scripts for sway
MIT License
63 stars 22 forks source link

Start checking Python code in Github CI #15

Closed smason closed 10 months ago

smason commented 1 year ago

Start simple with checking, just run Ruff and Mypy on **.py (i.e. all Python source files) with CPython 3.10.

Config for these tools is in pyproject.toml and are hopefully reasonable defaults.

smason commented 1 year ago

Might be nice to add a badge to show CI is being run when this gets merged

Would be something like:

[![CI](https://github.com/OctopusET/sway-contrib/actions/workflows/ci.yaml/badge.svg)](https://github.com/OctopusET/sway-contrib/actions/workflows/ci.yaml)

Which would look like CI when merged, but this will be broken until it's merged.

Also probably worth changing the triggers around so it's only run on pull requests (i.e. on: pull_request in .github/workflows/ci.yaml), it's currently on: push so I could test a run.