Skip to content

Commit

Permalink
Merge pull request #42 from sot/ruff
Browse files Browse the repository at this point in the history
Apply ruff format (black) and linting
  • Loading branch information
taldcroft authored Nov 16, 2023
2 parents ff927e4 + 85708c4 commit a728278
Show file tree
Hide file tree
Showing 10 changed files with 368 additions and 238 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/flake8.yml

This file was deleted.

10 changes: 10 additions & 0 deletions .github/workflows/python-formatting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: check format using ruff
on: [push]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
with:
args: format --check
8 changes: 8 additions & 0 deletions .github/workflows/python-linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: lint code using ruff
on: [push]
jobs:
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: chartboost/ruff-action@v1
259 changes: 144 additions & 115 deletions Quaternion/Quaternion.py

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions Quaternion/__init__.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import ska_helpers

from .Quaternion import * # noqa
from .Quaternion import *

__version__ = ska_helpers.get_version(__package__)


def test(*args, **kwargs):
'''
"""
Run py.test unit tests.
'''
"""
import testr

return testr.test(*args, **kwargs)
Loading

0 comments on commit a728278

Please sign in to comment.