Skip to content

Commit

Permalink
drop black, use ruff format
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodruff <[email protected]>
  • Loading branch information
woodruffw committed Feb 20, 2024
1 parent 8038718 commit fa03988
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions {{cookiecutter.project_slug}}/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ $(VENV)/pyvenv.cfg: pyproject.toml
.PHONY: lint
lint: $(VENV)/pyvenv.cfg
. $(VENV_BIN)/activate && \
black --check $(ALL_PY_SRCS) && \
ruff format --check $(ALL_PY_SRCS) && \
ruff $(ALL_PY_SRCS) && \
mypy

Expand All @@ -73,7 +73,7 @@ lint: $(VENV)/pyvenv.cfg
reformat:
. $(VENV_BIN)/activate && \
ruff --fix $(ALL_PY_SRCS) && \
black $(ALL_PY_SRCS)
ruff format $(ALL_PY_SRCS)

.PHONY: test tests
test tests: $(VENV)/pyvenv.cfg
Expand Down
4 changes: 0 additions & 4 deletions {{cookiecutter.project_slug}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ doc = [
]
test = ["pytest", "pytest-cov", "pretend", "coverage[toml]"]
lint = [
"black ~= 23.0",
# NOTE: ruff is under active development, so we pin conservatively here
# and let Dependabot periodically perform this update.
"ruff < 0.0.293",
Expand Down Expand Up @@ -60,9 +59,6 @@ Source = "https://github.com/{{ cookiecutter.github_username }}/{{ cookiecutter.
[tool.flit.module]
name = "{{ cookiecutter.__project_import }}"

[tool.black]
line-length = 100

[tool.coverage.run]
# don't attempt code coverage for the CLI entrypoints
omit = ["{{ cookiecutter.__project_src_path }}/_cli.py"]
Expand Down

0 comments on commit fa03988

Please sign in to comment.