Skip to content

Commit 220a0a6

Browse files
committed
Replace black and pylint with ruff
1 parent 6883d07 commit 220a0a6

File tree

6 files changed

+232
-414
lines changed

6 files changed

+232
-414
lines changed

Makefile

+4-3
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ build:
55
@poetry build
66

77
format:
8-
@poetry run black .
8+
@poetry run ruff check --fix
9+
@poetry run ruff format
910

1011
lint:
11-
@poetry run pylint ./makenew_pypackage
12-
@poetry run black --check .
12+
@poetry run ruff check
13+
@poetry run ruff format --check
1314
@poetry run rstcheck README.rst
1415

1516
test:

README.rst

+2-4
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ Features
2424

2525
- Publishing to PyPI_.
2626
- Secure dependency management with Poetry_.
27-
- Linting with Pylint_.
28-
- Uncompromising code formatting with Black_.
27+
- Extremely fast Python linting and code formatting with Ruff_.
2928
- pytest_ helps you write better programs.
3029
- Code coverage reporting with Codecov_.
3130
- Fully automated version management and package publishing with semantic-release__.
@@ -35,13 +34,12 @@ Features
3534
- Badges from Shields.io_.
3635
- Start coding instantly with `GitHub Codespaces`_.
3736

38-
.. _Black: https://black.readthedocs.io/en/stable/
3937
.. _Codecov: https://codecov.io/
4038
.. _EditorConfig: https://editorconfig.org/
4139
.. _GitHub Codespaces: https://github.com/features/codespaces
4240
.. _Keep a CHANGELOG: https://keepachangelog.com/
4341
.. _PyPI: https://pypi.python.org/pypi
44-
.. _Pylint: https://www.pylint.org/
42+
.. _Ruff: https://github.com/astral-sh/ruff
4543
.. _Shields.io: https://shields.io/
4644
.. __: https://semantic-release.gitbook.io/semantic-release/
4745
.. __: https://github.com/features/actions

makenew.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ makenew () {
5959
read -p '> GitHub user or organization name (my-user): ' mk_user
6060
read -p '> GitHub repository name (my-repo): ' mk_repo
6161

62-
sed_delete README.rst '18,130d'
62+
sed_delete README.rst '18,128d'
6363
sed_insert README.rst '18i' 'TODO'
6464

6565
old_title="Python Package Skeleton"

makenew_pypackage/todo_test.py

-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
# pylint: disable=missing-docstring
2-
# pylint: disable=unused-import
3-
4-
import pytest
5-
61
from .todo import todo
72

83

0 commit comments

Comments
 (0)