mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-23 20:46:28 +01:00
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:
parent
ffe3578a06
commit
a5406b71b0
1
PYTHON/downloadCats/__init__.py
Normal file
1
PYTHON/downloadCats/__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
"""Cat image generator package."""
|
||||||
1
PYTHON/extractLinks/tests/__init__.py
Normal file
1
PYTHON/extractLinks/tests/__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
"""Tests for link extraction module."""
|
||||||
1
PYTHON/keyboardCoop/__init__.py
Normal file
1
PYTHON/keyboardCoop/__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
"""Keyboard cooperation utilities package."""
|
||||||
1
PYTHON/lichess_bot/tests/__init__.py
Normal file
1
PYTHON/lichess_bot/tests/__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
"""Tests for Lichess bot module."""
|
||||||
1
PYTHON/mock_server/__init__.py
Normal file
1
PYTHON/mock_server/__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
"""Mock server package."""
|
||||||
1
PYTHON/randomJPG/__init__.py
Normal file
1
PYTHON/randomJPG/__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
"""Random JPEG generator package."""
|
||||||
1
PYTHON/randomize_numbers/__init__.py
Normal file
1
PYTHON/randomize_numbers/__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
"""Random number utilities package."""
|
||||||
1
PYTHON/scapeWebsite/__init__.py
Normal file
1
PYTHON/scapeWebsite/__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
"""Web scraping package."""
|
||||||
1
PYTHON/split/__init__.py
Normal file
1
PYTHON/split/__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
"""Symmetric splitting utilities package."""
|
||||||
1
PYTHON/tagDivider/__init__.py
Normal file
1
PYTHON/tagDivider/__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
"""Image tag divider package."""
|
||||||
1
articles/__init__.py
Normal file
1
articles/__init__.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
"""Articles site tests package."""
|
||||||
@ -34,7 +34,6 @@ ignore = [
|
|||||||
"COM812", # Trailing comma missing (conflicts with formatter)
|
"COM812", # Trailing comma missing (conflicts with formatter)
|
||||||
"ISC001", # Implicit string concatenation (conflicts with formatter)
|
"ISC001", # Implicit string concatenation (conflicts with formatter)
|
||||||
# Relaxed for script-heavy repository
|
# Relaxed for script-heavy repository
|
||||||
"INP001", # Implicit namespace package - this is a scripts repo
|
|
||||||
"PLR2004", # Magic value comparison - common in scripts
|
"PLR2004", # Magic value comparison - common in scripts
|
||||||
"S101", # Use of assert - acceptable in this codebase
|
"S101", # Use of assert - acceptable in this codebase
|
||||||
"ANN001", # Missing type annotation for function argument
|
"ANN001", # Missing type annotation for function argument
|
||||||
@ -108,6 +107,9 @@ unfixable = []
|
|||||||
"D100", # Allow missing module docstring
|
"D100", # Allow missing module docstring
|
||||||
"D103", # Allow missing function 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]
|
[tool.ruff.lint.pydocstyle]
|
||||||
convention = "google" # Use Google docstring convention
|
convention = "google" # Use Google docstring convention
|
||||||
@ -191,7 +193,7 @@ jobs = 0
|
|||||||
# Minimum Python version
|
# Minimum Python version
|
||||||
py-version = "3.10"
|
py-version = "3.10"
|
||||||
# Ignore vendored directories
|
# Ignore vendored directories
|
||||||
ignore = ["Bash", ".venv", "__pycache__"]
|
ignore = ["Bash", ".venv", "__pycache__", "downloadCats", "keyboardCoop", "randomJPG", "scapeWebsite", "tagDivider"]
|
||||||
# Ignore patterns
|
# Ignore patterns
|
||||||
ignore-patterns = [".*\\.pyi$"]
|
ignore-patterns = [".*\\.pyi$"]
|
||||||
|
|
||||||
@ -209,6 +211,7 @@ disable = [
|
|||||||
"deprecated-pragma",
|
"deprecated-pragma",
|
||||||
"use-symbolic-message-instead",
|
"use-symbolic-message-instead",
|
||||||
"too-few-public-methods", # Often false positive for data classes
|
"too-few-public-methods", # Often false positive for data classes
|
||||||
|
"invalid-name", # Existing camelCase folder names (downloadCats, etc.)
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.pylint.format]
|
[tool.pylint.format]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user