Skip to content

Commit

Permalink
Enable ruff and black on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr committed Aug 17, 2023
1 parent bf9f580 commit 9ef1e31
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ on:
- pull_request

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: pip install black ruff
- run: |
ruff check src
black --check src
build:
runs-on: ${{ matrix.platform }}
continue-on-error: true
Expand Down
2 changes: 1 addition & 1 deletion src/shellingham/posix/proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def detect_proc():

def _use_bsd_stat_format():
try:
return os.uname().sysname.lower() in ('freebsd', 'netbsd', 'dragonfly')
return os.uname().sysname.lower() in ("freebsd", "netbsd", "dragonfly")
except Exception:
return False

Expand Down

0 comments on commit 9ef1e31

Please sign in to comment.