Skip to content

Commit 88ac7b8

Browse files
author
Gaurav Sheni
authored
Use ruff for flake8 linting and remove flake8 (#50)
1 parent f23a9c1 commit 88ac7b8

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.github/workflows/lint_check.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,8 @@ jobs:
1919
with:
2020
ref: ${{ github.event.pull_request.head.ref }}
2121
repository: ${{ github.event.pull_request.head.repo.full_name }}
22-
- name: Build alteryx_open_src_update_checker package
23-
run: make package
24-
- name: Install alteryx_open_src_update_checker with dev requirements
22+
- name: Install dev requirements
2523
run: |
26-
pip config --site set global.progress_bar off
27-
python -m pip install --upgrade pip
2824
python -m pip install -e .[dev]
2925
- name: Run lint test
3026
run: make lint

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ repos:
2323
hooks:
2424
- id: add-trailing-comma
2525
name: Add trailing comma
26+
- repo: https://github.com/charliermarsh/ruff-pre-commit
27+
rev: 'v0.0.191'
28+
hooks:
29+
- id: ruff
2630
- repo: https://github.com/PyCQA/isort
2731
rev: 5.10.1
2832
hooks:

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ clean:
1010
lint:
1111
isort --check-only alteryx_open_src_update_checker
1212
black alteryx_open_src_update_checker -t py311 --check
13-
flake8 alteryx_open_src_update_checker
13+
ruff alteryx_open_src_update_checker/
1414

1515
.PHONY: lint-fix
1616
lint-fix:
17-
black alteryx_open_src_update_checker -t py310
17+
black alteryx_open_src_update_checker -t py311
1818
isort alteryx_open_src_update_checker
1919

2020
.PHONY: test

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ dependencies = [
4040

4141
[project.optional-dependencies]
4242
dev = [
43-
"flake8 == 5.0.4",
43+
"ruff",
4444
"isort == 5.10.1",
4545
"black == 22.6.0",
4646
"pre-commit == 2.20.0",

0 commit comments

Comments
 (0)