Skip to content

Commit

Permalink
Replace black and pylint with ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Jun 6, 2024
1 parent 6883d07 commit 678af15
Show file tree
Hide file tree
Showing 5 changed files with 231 additions and 413 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ build:
@poetry build

format:
@poetry run black .
@poetry run ruff check --fix
@poetry run ruff format

lint:
@poetry run pylint ./makenew_pypackage
@poetry run black --check .
@poetry run ruff check
@poetry run ruff format --check
@poetry run rstcheck README.rst

test:
Expand Down
6 changes: 2 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ Features

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

.. _Black: https://black.readthedocs.io/en/stable/
.. _Codecov: https://codecov.io/
.. _EditorConfig: https://editorconfig.org/
.. _GitHub Codespaces: https://github.com/features/codespaces
.. _Keep a CHANGELOG: https://keepachangelog.com/
.. _PyPI: https://pypi.python.org/pypi
.. _Pylint: https://www.pylint.org/
.. _Ruff: https://github.com/astral-sh/ruff
.. _Shields.io: https://shields.io/
.. __: https://semantic-release.gitbook.io/semantic-release/
.. __: https://github.com/features/actions
Expand Down
5 changes: 0 additions & 5 deletions makenew_pypackage/todo_test.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# pylint: disable=missing-docstring
# pylint: disable=unused-import

import pytest

from .todo import todo


Expand Down
Loading

0 comments on commit 678af15

Please sign in to comment.