Skip to content

Commit

Permalink
Set up black for GitHub CI pipeline (#99)
Browse files Browse the repository at this point in the history
Summary:
This PR introduces a linter, black, for linting purposes.

Pull Request resolved: #99

Test Plan: Please refer to the actions tab of the forked repository ([link](https://github.com/TaekyungHeo/param/actions)). At present, PARAM does not pass the linter checks. Additional refactoring is necessary.

Reviewed By: briancoutinho

Differential Revision: D55261475

Pulled By: shengfukevin

fbshipit-source-id: 2c92790e60e1e3fb1ed17fb2f4c6954a755bec18
  • Loading branch information
TaekyungHeo authored and facebook-github-bot committed Mar 23, 2024
1 parent 923ebe7 commit 0a07342
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/python_lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Python Linting

on: [push, pull_request]

jobs:
lint-and-format:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'

- name: Install dependencies
run: |
pip install black
- name: Run Black
run: black . --check

0 comments on commit 0a07342

Please sign in to comment.