Skip to content

Commit

Permalink
combine ruff and black in lint check
Browse files Browse the repository at this point in the history
  • Loading branch information
crccheck committed Sep 8, 2023
1 parent 4fd457a commit 7cf1f21
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@ jobs:
- run: make test

lint:
name: "Black"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- run: pip install black
- run: black --check .
- run: pip install -r requirements.txt
- run: make lint
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ test: ## Run test suite
coverage report

lint: ## Run lint check
black --check .
ruff check .

# Bump project_runpy.__version__
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ classifiers = [

[tool.coverage.run]
branch = true
source = "project_runpy"
source = ["project_runpy"]

[tool.coverage.report]
show_missing = true
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
black
coverage
ruff

0 comments on commit 7cf1f21

Please sign in to comment.