File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 },
1111 "remoteEnv" : {
1212 "POETRY_VIRTUALENVS_IN_PROJECT" : " true" ,
13- "PATH" : " ${containerEnv:PATH}:/home/vscode/.local/bin"
13+ "PATH" : " ${containerEnv:PATH}:/home/vscode/.local/bin:/workspaces/pypackage/.venv/bin "
1414 },
1515 "extensions" : [
1616 " ms-vsliveshare.vsliveshare" ,
1717 " ms-python.python" ,
18+ " charliermarsh.ruff" ,
1819 " EditorConfig.EditorConfig"
1920 ],
2021 "postCreateCommand" : " poetry install" ,
Original file line number Diff line number Diff line change 55 @poetry build
66
77format :
8- @poetry run black .
8+ @poetry run ruff check --fix
9+ @poetry run ruff format
910
1011lint :
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
1516test :
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff line change 1- # pylint: disable=missing-docstring
2- # pylint: disable=unused-import
3-
4- import pytest
5-
61from .todo import todo
72
83
Original file line number Diff line number Diff line change @@ -12,13 +12,12 @@ repository = "https://github.com/makenew/pypackage"
1212python = " ^3.11.0"
1313
1414[tool .poetry .group .dev .dependencies ]
15- black = " ^24.3.0"
16- pylint = " ^3.1.0"
1715pytest = " ^8.1.1"
1816pytest-cov = " ^5.0.0"
1917pytest-runner = " ^6.0.0"
2018pytest-watch = " ^4.2.0"
2119rstcheck = " ^6.1.2"
20+ ruff = " ^0.4.8"
2221
2322[build-system ]
2423requires = [" poetry>=1.8" ]
You can’t perform that action at this time.
0 commit comments