Go to file
Copilot aa5b566ac5 Add pre-commit workflow and fix linting violations (#2)
* Initial plan

* Add pre-commit GitHub workflow and fix linting issues

- Created .github/workflows/pre-commit.yml to run pre-commit hooks in CI
- Fixed mypy type errors in translator.py
- Fixed shellcheck warning in run_anki_generator.sh
- Added per-file ignores for word_frequency module legacy code
- Applied auto-fixes from ruff, ruff-format, autoflake, prettier
- All pre-commit hooks now passing

Co-authored-by: kuhyx <147418882+kuhyx@users.noreply.github.com>

* Make Python scripts with shebangs executable

- Set executable bit for word_frequency module scripts with shebangs
- All 30 pre-commit hooks now passing

Co-authored-by: kuhyx <147418882+kuhyx@users.noreply.github.com>

* Fix: Restore imports in check functions (autoflake-proof)

- Restored imports in _check_argos(), _check_deep_translator(), _check_langdetect()
- Used _ = module assignment to prevent autoflake from removing imports
- These imports test module availability by triggering ImportError if missing
- All 30 pre-commit hooks now passing

Co-authored-by: kuhyx <147418882+kuhyx@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: kuhyx <147418882+kuhyx@users.noreply.github.com>
2026-01-07 22:57:42 +01:00
.github Add pre-commit workflow and fix linting violations (#2) 2026-01-07 22:57:42 +01:00
.vscode fix: correct shebang and executable permissions 2025-11-30 13:42:16 +01:00
articles fix(lint): convert os.path to pathlib - remove PTH per-file ignores 2025-11-30 23:03:03 +01:00
C Add pre-commit workflow and fix linting violations (#2) 2026-01-07 22:57:42 +01:00
CPP fix: correct shebang and executable permissions 2025-11-30 13:42:16 +01:00
LaTeX fix: correct shebang and executable permissions 2025-11-30 13:42:16 +01:00
poker_modifier_app fix(lint): LOG015 - replace root logger with module loggers 2025-11-30 21:59:24 +01:00
python_pkg Add pre-commit workflow and fix linting violations (#2) 2026-01-07 22:57:42 +01:00
sonic_pi feat: text learning pipe 2025-12-27 17:22:17 +01:00
TS fix: correct shebang and executable permissions 2025-11-30 13:42:16 +01:00
.gitignore feat: sick mode 2026-01-06 13:10:54 +01:00
.pre-commit-config.yaml fix: remove invalid bandit B608 test, disable pyupgrade (Python 3.14 incompatible) 2026-01-06 13:11:34 +01:00
lint_python.sh fix: resolve shellcheck warnings 2025-11-30 13:48:17 +01:00
pyproject.toml Add pre-commit workflow and fix linting violations (#2) 2026-01-07 22:57:42 +01:00
pytest.ini feat: C engine 2025-09-06 18:26:31 +02:00
requirements-dev.txt fix: correct shebang and executable permissions 2025-11-30 13:42:16 +01:00
requirements.txt Add Anki flashcard generator for Warsaw districts using real OpenStreetMap boundaries (#1) 2026-01-07 22:50:59 +01:00
test_input_clean.wav fix: getting rnnoise model 2025-10-12 18:57:55 +02:00
test_input.wav fix: getting rnnoise model 2025-10-12 18:57:55 +02:00