Skip to content

Commit

Permalink
Bump packages, add typos to project:
Browse files Browse the repository at this point in the history
Now that Refurb is running CI for Python 3.10, 3.11, and 3.12, it would
probably be best if I only run linting once instead of 3 times. It wouldn't be
a huge time saving, but would prevent CI from failing 3 times for the same
errors.
  • Loading branch information
dosisod committed Aug 5, 2023
1 parent 0eb80ac commit d3cb2f9
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ jobs:
- name: Run isort
run: make isort

- name: Run typos
run: make typos

- name: Run unit tests
run: make test

Expand Down
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: install ruff mypy black isort test test-e2e refurb docs
.PHONY: install ruff mypy black isort typos test test-e2e refurb docs

all: ruff mypy black isort test refurb docs
all: ruff mypy black isort typos test refurb docs

install:
pip install -e .
Expand All @@ -19,6 +19,9 @@ black:
isort:
isort . --diff --check

typos:
typos --format brief

test:
pytest

Expand All @@ -35,3 +38,6 @@ update-tests: $(patsubst %.py,%.txt,$(wildcard test/data*/*.py))

docs:
python3 -m docs.gen_checks

clean:
rm -rf .mypy_cache .ruff_cache .pytest_cache
7 changes: 4 additions & 3 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ mypy-extensions==1.0.0
mypy==1.4.1
packaging==23.1
pathspec==0.11.2
platformdirs==3.9.1
platformdirs==3.10.0
pluggy==1.2.0
py==1.11.0
pyparsing==3.1.0
pyparsing==3.1.1
pytest-cov==4.1.0
pytest==7.4.0
ruff==0.0.280
ruff==0.0.282
typos==1.16.2
2 changes: 1 addition & 1 deletion test/e2e/stub_pkg/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ class C:
x: int

def __init__(self) -> None:
self.x = int(0)
self.x = int(0) # noqa: UP018

0 comments on commit d3cb2f9

Please sign in to comment.