testsAndMisc/C
Copilot 4355a2ad47
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
..
1dvelocitysimulator fix: correct shebang and executable permissions 2025-11-30 13:42:16 +01:00
fps fix: correct shebang and executable permissions 2025-11-30 13:42:16 +01:00
imageViewer fix: resolve shellcheck warnings 2025-11-30 13:48:17 +01:00
lichess_random_engine fix: correct shebang and executable permissions 2025-11-30 13:42:16 +01:00
misc fix: correct shebang and executable permissions 2025-11-30 13:42:16 +01:00
opening_learner fix: correct shebang and executable permissions 2025-11-30 13:42:16 +01:00
scrapeWebsite fix: correct shebang and executable permissions 2025-11-30 13:42:16 +01:00
tests fix: correct shebang and executable permissions 2025-11-30 13:42:16 +01:00
vocabulary_curve Add pre-commit workflow and fix linting violations (#2) 2026-01-07 22:57:42 +01:00
websocketServer fix: some linting issues 2025-11-01 20:11:45 +01:00
.clang-format feat: added linter for C 2025-11-01 19:18:53 +01:00
.clang-tidy fix: correct shebang and executable permissions 2025-11-30 13:42:16 +01:00
.gitignore fix: correct shebang and executable permissions 2025-11-30 13:42:16 +01:00
compile_commands.json feat: added linter for C 2025-11-01 19:18:53 +01:00
cppcheck.txt feat: added linter for C 2025-11-01 19:18:53 +01:00
flawfinder.txt feat: added linter for C 2025-11-01 19:18:53 +01:00
lint_all.sh fix: some linting issues 2025-11-01 20:11:45 +01:00