Enable INP001: add __init__.py to 11 packages

- poker-modifier-app excluded via per-file-ignore (has hyphens)
- Disable pylint invalid-name for existing camelCase folder names
This commit is contained in:
Krzysztof kuhy Rudnicki 2025-11-30 14:55:20 +01:00
parent acddbbf98c
commit 91a4532772
12 changed files with 16 additions and 2 deletions

View File

@ -0,0 +1 @@
"""Cat image generator package."""

View File

@ -0,0 +1 @@
"""Tests for link extraction module."""

View File

@ -0,0 +1 @@
"""Keyboard cooperation utilities package."""

View File

@ -0,0 +1 @@
"""Tests for Lichess bot module."""

View File

@ -0,0 +1 @@
"""Mock server package."""

View File

@ -0,0 +1 @@
"""Random JPEG generator package."""

View File

@ -0,0 +1 @@
"""Random number utilities package."""

View File

@ -0,0 +1 @@
"""Web scraping package."""

1
PYTHON/split/__init__.py Normal file
View File

@ -0,0 +1 @@
"""Symmetric splitting utilities package."""

View File

@ -0,0 +1 @@
"""Image tag divider package."""

1
articles/__init__.py Normal file
View File

@ -0,0 +1 @@
"""Articles site tests package."""

View File

@ -34,7 +34,6 @@ ignore = [
"COM812", # Trailing comma missing (conflicts with formatter)
"ISC001", # Implicit string concatenation (conflicts with formatter)
# Relaxed for script-heavy repository
"INP001", # Implicit namespace package - this is a scripts repo
"PLR2004", # Magic value comparison - common in scripts
"S101", # Use of assert - acceptable in this codebase
"ANN001", # Missing type annotation for function argument
@ -108,6 +107,9 @@ unfixable = []
"D100", # Allow missing module docstring
"D103", # Allow missing function docstring
]
"poker-modifier-app/*.py" = [
"INP001", # Folder has hyphen, can't be a valid Python package
]
[tool.ruff.lint.pydocstyle]
convention = "google" # Use Google docstring convention
@ -191,7 +193,7 @@ jobs = 0
# Minimum Python version
py-version = "3.10"
# Ignore vendored directories
ignore = ["Bash", ".venv", "__pycache__"]
ignore = ["Bash", ".venv", "__pycache__", "downloadCats", "keyboardCoop", "randomJPG", "scapeWebsite", "tagDivider"]
# Ignore patterns
ignore-patterns = [".*\\.pyi$"]
@ -209,6 +211,7 @@ disable = [
"deprecated-pragma",
"use-symbolic-message-instead",
"too-few-public-methods", # Often false positive for data classes
"invalid-name", # Existing camelCase folder names (downloadCats, etc.)
]
[tool.pylint.format]