Skip to content

Commit

Permalink
ci: more simple poetry config
Browse files Browse the repository at this point in the history
  • Loading branch information
tboerger committed May 27, 2024
1 parent c1ea504 commit 1bc04c3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 99 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ jobs:
- name: Run install
run: poetry install

# - name: Run format
# run: poetry run ruff format --check --diff ./gopad

# - name: Run coding
# run: poetry run ruff check ./gopad

- name: Run test
run: poetry run pytest

Expand Down
28 changes: 1 addition & 27 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

69 changes: 3 additions & 66 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,9 @@ pydantic = ">=2"
typing-extensions = ">=4.7.1"

[tool.poetry.group.dev.dependencies]
ruff = "0.4.5"
pytest = ">=7.2.1"
types-python-dateutil = ">=2.8.19.14"
build = "1.1.1"

[tool.poetry-dynamic-versioning]
enable = true
style = "semver"
vcs = "git"
build = ">=1.1.1"

[tool.pytest.ini_options]
addopts = "test/"
Expand All @@ -70,62 +64,5 @@ filterwarnings = [
]

[build-system]
build-backend = "poetry_dynamic_versioning.backend"
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]

[tool.ruff]
exclude = [
".direnv",
".devenv",
".git",
"__pycache__",
"build",
"dist",
"test",
"*.pyc",
"*.egg-info",
".cache",
".eggs",
"venv",
]

line-length = 120
indent-width = 4

[tool.ruff.lint]
ignore = [
"D205",
"D400",
"D401",
"D415",
]

select = [
"D",
"E",
"F",
"Q",
"W",
"I",
"S",
"BLE",
"N",
"UP",
"B",
"A",
"C4",
"T20",
"SIM",
"RET",
"ARG",
"ERA",
"RUF",
]

fixable = ["ALL"]
unfixable = []

[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "lf"
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

0 comments on commit 1bc04c3

Please sign in to comment.