Skip to content

Commit

Permalink
switch CI to ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeshardmind committed Apr 5, 2024
1 parent 7693571 commit 9bd2491
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

This document provides community guidelines for a safe, respectful, productive, and collaborative place for any person who is willing to contribute to the code provided in this respository.
This document provides community guidelines for a safe, respectful, productive, and collaborative place for any person who is willing to contribute to the code provided in this respository.

The document applies in all “collaborative spaces” in which the code is being collaborated on, which is defined as communications channels used for purposes of collaboration on the code (such as issue comments, submitted patches, commit comments, etc.).

Expand All @@ -22,6 +22,6 @@ With those values in mind, the guidelines which contributors should follow:

Those who violate the guidelines as written, as well as those who intentionally tow the line to violate the values expressed which these guidelines protect will be removed.

The curent point of contact for any issues arising with this is unifiedmoderation-conduct@michaelhall.tech
The curent point of contact for any issues arising with this is code-contributions@michaelhall.tech
This address will be monitored for so long as it is included as the point of contact.
Should it change at a later date, the new address will be reflected in this document.
5 changes: 2 additions & 3 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@

1. All contributions, code or otherwise, should follow the project code of conduct.
2. All code contributions from non-members should be discussed in advance. Please do not open a pull request without having done this.
3. Python source files should be formatted with [black](https://github.com/psf/black) and with [isort](https://github.com/PyCQA/isort)
4. Pull requests should have a limited scope to what they intend to accomplish.
5. Commit messages should be meaningful.
3. Pull requests should have a limited scope to what they intend to accomplish.
4. Commit messages should be meaningful.
24 changes: 11 additions & 13 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ on:
types: [ opened, synchronize ]

jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
with:
args: 'format --check'
- uses: chartboost/ruff-action@v1
with:
args: 'check'

check:
runs-on: ubuntu-latest
strategy:
Expand All @@ -24,11 +35,6 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install deps
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -U -r dev-requirements.txt
- name: Setup node.js
uses: actions/setup-node@v2
with:
Expand All @@ -42,14 +48,6 @@ jobs:
run: |
pyright
- name: Style check
run: |
black --check --verbose umn_async_utils
- name: Import check
run: |
isort --check umn_async_utils
- name: Verify No CLRF line endings.
run: >
! $(find . ! -path "./.git/*" -not -type d -exec file "{}" ";" |& grep -q " CRLF ")
2 changes: 0 additions & 2 deletions dev-requirements.txt

This file was deleted.

0 comments on commit 9bd2491

Please sign in to comment.