Skip to content

Commit

Permalink
dev: move to uv
Browse files Browse the repository at this point in the history
  • Loading branch information
rtgiskard committed Sep 17, 2024
1 parent 40e6dcf commit dcd2fbe
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 24 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
poetry.lock
__pycache__/

uv.lock
bibata.egg-info/

poetry.lock

out/
svg/modern*/
svg/original*/
41 changes: 18 additions & 23 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,31 +1,16 @@
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
[project]
name = "bibata"
version = "0.2.0"
description = "bibata cursors"
authors = ["giskard <rtgiskard@gmail.com>"]

[tool.poetry.dependencies]
python = "^3.12"

# optional dev tools
ruff = {version = "^0.0.272", optional = true}
yapf = {version = "^0.40.0", optional = true}
pytest = {version = "^7.2.2", optional = true}

[tool.yapf]
based_on_style = "pep8"
column_limit = 94
spaces_before_comment = "20,25"
#spaces_before_comment = 4
version = "0.2.0"
requires-python = ">=3.12"
dependencies = []

[tool.ruff]
indent-width = 4
line-length = 94
lint.select = [ ## ref: https://beta.ruff.rs/docs/rules/

[tool.ruff.lint]
select = [ ## ref: https://beta.ruff.rs/docs/rules/
"E", # pycodestyle Error
"W", # pycodestyle Warning
"I", # isort
Expand All @@ -37,7 +22,7 @@ lint.select = [ ## ref: https://beta.ruff.rs/docs/rules/
"COM", # flake8-commas
"SIM", # flake8-simplify
]
lint.ignore = [ ## ref: https://pep8.readthedocs.io/en/release-1.7.x/intro.html#error-codes
ignore = [ ## ref: https://pep8.readthedocs.io/en/release-1.7.x/intro.html#error-codes
"E266", # too many leading ‘#’ for block comment
"E731", # do not assign a lambda expression, use a def
"I001", # Import block is un-sorted or un-formatted
Expand All @@ -48,3 +33,13 @@ lint.ignore = [ ## ref: https://pep8.readthedocs.io/en/release-1.7.x/intro.html#
inline-quotes = "single"
multiline-quotes = "single"
docstring-quotes = "single"

[tool.ruff.format]
quote-style = "single"
line-ending = "lf"

[tool.yapf]
based_on_style = "pep8"
column_limit = 94
spaces_before_comment = "20,25"
#spaces_before_comment = 4

0 comments on commit dcd2fbe

Please sign in to comment.