Skip to content

Commit

Permalink
ruff version upgraded
Browse files Browse the repository at this point in the history
  • Loading branch information
ilkersigirci committed Jan 5, 2025
1 parent 2440879 commit aec2d5f
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 58 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ repos:
# args: [requirements.in, -o, requirements.txt]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.0
rev: v0.8.6
hooks:
# Run the Ruff linter.
- id: ruff
Expand Down
49 changes: 15 additions & 34 deletions pyproject.toml
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 = [
Expand All @@ -12,7 +11,6 @@ authors = [
maintainers = [
{name = "İlker SIĞIRCI", email = "[email protected]"},
]
readme = "README.md"

keywords = [
"podflix"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand All @@ -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
Expand All @@ -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"]
Expand All @@ -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 = [
Expand All @@ -221,4 +201,5 @@ test = [
"pytest-xdist>=3.6.1",
"pytest>=8.3.3",
# "pytest-timeout",
"pytest-asyncio>=0.25.1",
]
60 changes: 37 additions & 23 deletions uv.lock

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

0 comments on commit aec2d5f

Please sign in to comment.