Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace black and pylint with ruff
Browse files Browse the repository at this point in the history
razor-x committed Jun 6, 2024

Verified

This commit was signed with the committer’s verified signature.
renovate-bot Mend Renovate
1 parent 6883d07 commit 678af15
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
@@ -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:
6 changes: 2 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
@@ -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__.
@@ -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
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


623 changes: 224 additions & 399 deletions poetry.lock

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -12,13 +12,12 @@ repository = "https://github.com/makenew/pypackage"
python = "^3.11.0"

[tool.poetry.group.dev.dependencies]
black = "^24.3.0"
pylint = "^3.1.0"
pytest = "^8.1.1"
pytest-cov = "^5.0.0"
pytest-runner = "^6.0.0"
pytest-watch = "^4.2.0"
rstcheck = "^6.1.2"
ruff = "^0.4.8"

[build-system]
requires = ["poetry>=1.8"]

0 comments on commit 678af15

Please sign in to comment.