Skip to content

Commit

Permalink
Autogenerate documentation for checks (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
dosisod authored Mar 11, 2023
1 parent f0fcf2d commit dd7e2d2
Show file tree
Hide file tree
Showing 5 changed files with 1,716 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,7 @@ jobs:

- name: Run e2e tests
run: make test-e2e

# TODO: fail if docs are out of date
- name: Build docs
run: make docs
7 changes: 5 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
.PHONY: install ruff mypy black isort test test-e2e refurb docs

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

install:
pip install .
Expand Down Expand Up @@ -35,3 +35,6 @@ test/%.txt: test/%.py
refurb "$^" --enable-all --quiet > "$@" || true

update-tests: $(patsubst %.py,%.txt,$(wildcard test/data*/*.py))

docs:
python3 -m docs.gen_checks
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ num = 123
```
````

An online list of all available checks can be viewed [here](./docs/checks.md).

## Ignoring Errors

Use `--ignore 123` to ignore error 123. The error code can be in the form `FURB123` or `123`.
Expand Down
Loading

0 comments on commit dd7e2d2

Please sign in to comment.