File tree 7 files changed +234
-415
lines changed 7 files changed +234
-415
lines changed Original file line number Diff line number Diff line change 10
10
},
11
11
"remoteEnv" : {
12
12
"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 "
14
14
},
15
15
"extensions" : [
16
16
" ms-vsliveshare.vsliveshare" ,
17
17
" ms-python.python" ,
18
+ " charliermarsh.ruff" ,
18
19
" EditorConfig.EditorConfig"
19
20
],
20
21
"postCreateCommand" : " poetry install" ,
Original file line number Diff line number Diff line change 5
5
@poetry build
6
6
7
7
format :
8
- @poetry run black .
8
+ @poetry run ruff check --fix
9
+ @poetry run ruff format
9
10
10
11
lint :
11
- @poetry run pylint ./makenew_pypackage
12
- @poetry run black --check .
12
+ @poetry run ruff check
13
+ @poetry run ruff format --check
13
14
@poetry run rstcheck README.rst
14
15
15
16
test :
Original file line number Diff line number Diff line change @@ -24,8 +24,7 @@ Features
24
24
25
25
- Publishing to PyPI _.
26
26
- 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 _.
29
28
- pytest _ helps you write better programs.
30
29
- Code coverage reporting with Codecov _.
31
30
- Fully automated version management and package publishing with semantic-release __.
@@ -35,13 +34,12 @@ Features
35
34
- Badges from Shields.io _.
36
35
- Start coding instantly with `GitHub Codespaces `_.
37
36
38
- .. _Black : https://black.readthedocs.io/en/stable/
39
37
.. _Codecov : https://codecov.io/
40
38
.. _EditorConfig : https://editorconfig.org/
41
39
.. _GitHub Codespaces : https://github.com/features/codespaces
42
40
.. _Keep a CHANGELOG : https://keepachangelog.com/
43
41
.. _PyPI : https://pypi.python.org/pypi
44
- .. _ Pylint : https://www.pylint.org/
42
+ .. _ Ruff : https://github.com/astral-sh/ruff
45
43
.. _Shields.io : https://shields.io/
46
44
.. __ : https://semantic-release.gitbook.io/semantic-release/
47
45
.. __ : https://github.com/features/actions
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ makenew () {
59
59
read -p ' > GitHub user or organization name (my-user): ' mk_user
60
60
read -p ' > GitHub repository name (my-repo): ' mk_repo
61
61
62
- sed_delete README.rst ' 18,130d '
62
+ sed_delete README.rst ' 18,128d '
63
63
sed_insert README.rst ' 18i' ' TODO'
64
64
65
65
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
-
6
1
from .todo import todo
7
2
8
3
Original file line number Diff line number Diff line change @@ -12,13 +12,12 @@ repository = "https://github.com/makenew/pypackage"
12
12
python = " ^3.11.0"
13
13
14
14
[tool .poetry .group .dev .dependencies ]
15
- black = " ^24.3.0"
16
- pylint = " ^3.1.0"
17
15
pytest = " ^8.1.1"
18
16
pytest-cov = " ^5.0.0"
19
17
pytest-runner = " ^6.0.0"
20
18
pytest-watch = " ^4.2.0"
21
19
rstcheck = " ^6.1.2"
20
+ ruff = " ^0.4.8"
22
21
23
22
[build-system ]
24
23
requires = [" poetry>=1.8" ]
You can’t perform that action at this time.
0 commit comments