Skip to content

Commit

Permalink
build(pyproject): reduce PYTHON_SOURCES to dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
dbohdan committed Feb 14, 2024
1 parent 086faf0 commit 6e87dc2
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[build-system]
requires = ["poetry-core>=1.0"]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "remarshal"
version = "1.0.0rc2"
Expand Down Expand Up @@ -51,10 +55,6 @@ pyright = "1.1.350"
pytest = "^8"
pytest-cov = "^4.1.0"

[build-system]
requires = ["poetry-core>=1.0"]
build-backend = "poetry.core.masonry.api"

[tool.poetry.scripts]
remarshal = 'remarshal.main:main'
cbor2cbor = 'remarshal.main:main'
Expand Down Expand Up @@ -83,21 +83,24 @@ yaml2msgpack = 'remarshal.main:main'
yaml2toml = 'remarshal.main:main'
yaml2yaml = 'remarshal.main:main'

[tool.codespell]
quiet-level = 3

[tool.poe.env]
"PYTHON_SOURCES" = "src/remarshal/__init__.py src/remarshal/__main__.py src/remarshal/main.py tests/__init__.py tests/test_remarshal.py"
"PYTHON_SOURCES" = "src/ tests/"

[tool.poe.tasks.check]
sequence = ["format", "codespell", "lint", "type"]
help = "Run the formatter, then all static checks"
ignore_fail = "return_non_zero"

[tool.poe.tasks.codespell]
cmd = "codespell --quiet-level 1 ${PYTHON_SOURCES}"
cmd = "codespell ${PYTHON_SOURCES}"
help = "Run codespell"

[tool.poe.tasks.files]
cmd = "echo ${PYTHON_SOURCES}"
help = "Print the list of files used for static checks"
help = "Print the list of files and directories used for static checks"

[tool.poe.tasks.format]
cmd = "ruff format ${PYTHON_SOURCES}"
Expand Down

0 comments on commit 6e87dc2

Please sign in to comment.