generated from ilkersigirci/python-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2440879
commit aec2d5f
Showing
3 changed files
with
53 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
[project] | ||
name = "podflix" | ||
version = "0.0.0" | ||
version = "0.1.0" | ||
description = "Chat with your podcast" | ||
|
||
# NOTE: Overwrites .python-version | ||
readme = "README.md" | ||
requires-python = ">=3.11,<3.13" | ||
|
||
authors = [ | ||
|
@@ -12,7 +11,6 @@ authors = [ | |
maintainers = [ | ||
{name = "İlker SIĞIRCI", email = "[email protected]"}, | ||
] | ||
readme = "README.md" | ||
|
||
keywords = [ | ||
"podflix" | ||
|
@@ -77,26 +75,17 @@ log_cli_format = "%(asctime)-20s :: %(name)-8s :: %(levelname)-8s :: %(filename) | |
log_cli_date_format = "%Y-%m-%d %H:%M:%S" | ||
|
||
[tool.ruff] | ||
target-version = "py311" | ||
# target-version = "py311" | ||
line-length = 88 | ||
src = ["src"] | ||
respect-gitignore = true | ||
|
||
# extend-include = [] | ||
|
||
extend-exclude = [ | ||
"docs", | ||
"tests", | ||
] | ||
|
||
# Ignore `E402` (import violations) in all `__init__.py` files, and in `path/to/file.py`. | ||
[tool.ruff.lint.per-file-ignores] | ||
"__init__.py" = ["E402", "F401"] | ||
"src/podflix/gui/*.py" = ["D"] | ||
"*.ipynb" = ["D", "T20"] # Disable docstring and print checks for notebooks | ||
|
||
# 'podflix/__init__.py' = ['F405', 'F403'] | ||
|
||
# [tool.ruff.flake8-quotes] | ||
# inline-quotes = "single" | ||
# multiline-quotes = "double" | ||
|
@@ -141,8 +130,15 @@ unfixable = [ | |
|
||
#extend-select = [] | ||
|
||
[tool.ruff.lint.flake8-import-conventions.extend-aliases] | ||
some_alias = "" | ||
# Ignore `E402` (import violations) in all `__init__.py` files, and in `path/to/file.py`. | ||
[tool.ruff.lint.per-file-ignores] | ||
"__init__.py" = ["E402", "F401"] | ||
"src/podflix/gui/*.py" = ["D"] | ||
"*.ipynb" = ["D", "T20"] # Disable docstring and print checks for notebooks | ||
# 'podflix/__init__.py' = ['F405', 'F403'] | ||
|
||
# [tool.ruff.lint.flake8-import-conventions.extend-aliases] | ||
# some_alias = "" | ||
|
||
[tool.ruff.lint.pydocstyle] | ||
convention = "google" | ||
|
@@ -156,22 +152,6 @@ combine-as-imports = true | |
# known-first-party = ["SomeLibrary"] | ||
# known-third-party = ["SomeLibrary"] | ||
|
||
# mypy section | ||
# Read more here: https://mypy.readthedocs.io/en/stable/config_file.html#using-a-pyproject-toml-file | ||
[tool.mypy] | ||
# python_version = "3.8" | ||
files = ["src/podflix"] | ||
# exclude = ['^tests/'] | ||
strict = true | ||
show_error_codes = true | ||
# ignore_missing_imports = true | ||
|
||
# TODO: Check whether this is working | ||
[[tool.mypy.overrides]] | ||
module = "tests.*" | ||
ignore_missing_imports = true | ||
check_untyped_defs = true | ||
|
||
[tool.coverage.run] | ||
source = ['src/podflix'] | ||
branch = true | ||
|
@@ -194,7 +174,7 @@ exclude_lines = [ | |
|
||
# [build-system] | ||
# requires = ["uv>=0.5.0,<1.0.0"] | ||
# build-backend = "uv._build_backend" # FIXME: Only builds source distribution, not wheel | ||
# build-backend = "uv" # FIXME: Only builds source distribution, not wheel | ||
|
||
[build-system] | ||
requires = ["hatchling"] | ||
|
@@ -205,7 +185,7 @@ dev = [ | |
"ipykernel>=6.29.5", | ||
"mypy>=1.13.0", | ||
"pre-commit>=4.0.1", | ||
"ruff==0.8.0", | ||
"ruff==0.8.6", | ||
# "scalene~=1.5.21.2", | ||
] | ||
doc = [ | ||
|
@@ -221,4 +201,5 @@ test = [ | |
"pytest-xdist>=3.6.1", | ||
"pytest>=8.3.3", | ||
# "pytest-timeout", | ||
"pytest-asyncio>=0.25.1", | ||
] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.