testsAndMisc-archive/python_pkg/word_frequency
Krzysztof kuhy Rudnicki e5fd82c822 Reduce per-file-ignores by fixing lint violations across codebase
Fix ruff violations in ~15 source files and ~60+ test files to minimize
per-file-ignores in pyproject.toml. Remaining ignores are justified with
comments explaining why each suppression is necessary.

Source fixes: FBT003 (keyword args), S310 (URL validation), SLF001
(private access), T201 (print→logging), C901 (complexity), E501 (line
length), E402 (import order).

Test fixes: SIM117 (combined with), FBT (boolean args), PERF203 (try in
loop), S310/S607 (URLs/executables), E402/E501 (imports/lines), S108
(tmp paths), PLR0913 (too many args), ARG (unused args), ANN (type
annotations), RUF059 (unused unpacked vars), PT019 (fixture naming).

Remaining per-file-ignores (with justifications):
- Tests: ARG, D, PLC0415, PLR2004, S101, SLF001
- music_gen sources: PLC0415 (heavy ML lazy imports)
- moviepy_showcase: PLC0415 (circular dependency)
- generate_images: PLR0913 (matplotlib helpers need many params)
- praca_magisterska_video: E501, E402 (long paths, mpl.use)
2026-03-25 18:58:05 +01:00
..
test_texts Add pre-commit workflow and fix linting violations (#2) 2026-01-07 22:57:42 +01:00
tests Reduce per-file-ignores by fixing lint violations across codebase 2026-03-25 18:58:05 +01:00
__init__.py feat: added translations 2025-12-28 15:55:43 +01:00
_cache_decks.py test: achieve 100% branch coverage across all python_pkg packages 2026-03-21 17:51:36 +01:00
_deck_builder.py test: achieve 100% branch coverage across all python_pkg packages 2026-03-21 17:51:36 +01:00
_generation.py fix: resolve all pre-commit hook failures after file splits 2026-03-18 22:20:05 +01:00
_learning_batch.py test: achieve 100% branch coverage across all python_pkg packages 2026-03-21 17:51:36 +01:00
_learning_constants.py refactor: enforce 500-line limit on all Python source files 2026-03-17 22:47:42 +01:00
_parsing.py test: achieve 100% branch coverage across all python_pkg packages 2026-03-21 17:51:36 +01:00
_translator_cli.py Reduce per-file-ignores by fixing lint violations across codebase 2026-03-25 18:58:05 +01:00
_translator_helpers.py test: achieve 100% branch coverage across all python_pkg packages 2026-03-21 17:51:36 +01:00
_types.py refactor: enforce 500-line limit on all Python source files 2026-03-17 22:47:42 +01:00
analyzer.py refactor(word_frequency): fix all ruff violations and remove noqa comments 2026-03-13 20:41:31 +01:00
anki_generator.py test: achieve 100% branch coverage across all python_pkg packages 2026-03-21 17:51:36 +01:00
cache.py refactor: enforce 500-line limit on all Python source files 2026-03-17 22:47:42 +01:00
excerpt_finder.py refactor: enforce 500-line limit on all Python source files 2026-03-17 22:47:42 +01:00
learning_pipe.py test: achieve 100% branch coverage across all python_pkg packages 2026-03-21 17:51:36 +01:00
run_anki_generator.sh Add pre-commit workflow and fix linting violations (#2) 2026-01-07 22:57:42 +01:00
run.sh feat: added run sh and makefile scripts 2026-02-22 22:00:50 +01:00
translator.py Reduce per-file-ignores by fixing lint violations across codebase 2026-03-25 18:58:05 +01:00
vocabulary_curve.py test: achieve 100% branch coverage across all python_pkg packages 2026-03-21 17:51:36 +01:00