Skip to content

Fix Codacy issues; tighten lint, tox, and AGENTS.md rules - #1547

Merged
bact merged 8 commits into
PyThaiNLP:mainfrom
bact:codacy-cleanup
Oct 6, 2026
Merged

bact merged 8 commits into
PyThaiNLP:mainfrom
bact:codacy-cleanup

Conversation

@bact

@bact bact commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

What do these changes do

  • Fix Codacy findings: docstrings, test assert/random/MD5 use, mutable test defaults; add .pydocstyle.ini
  • Enable ruff B, C4, ISC, PIE and S101 (tests/notebooks exempt); fix existing hits
  • Align tox and Makefile with CI (pins, test commands); add make lint-md
  • Sort support_list; add cross-platform, encoding, assert, and sorting rules to AGENTS.md

What was wrong

How this fixes it

Fixes #...

Your checklist for this pull request

  • Passed code styles and structures
  • Passed code linting checks and unit test

- Fix Codacy findings: docstrings, test `assert`/`random`/MD5 use, mutable test defaults; add `.pydocstyle.ini`
- Enable ruff B, C4, ISC, PIE and S101 (tests/notebooks exempt); fix existing hits
- Align tox and Makefile with CI (pins, test commands); add `make lint-md`
- Sort `support_list`; add cross-platform, encoding, assert, and sorting rules to AGENTS.md

Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
@bact bact added the refactoring a technical improvement which does not add any new features or change existing features. label Oct 6, 2026
@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@coveralls

coveralls commented Oct 6, 2026 •

Copy link
Copy Markdown

Coverage Status

coverage: 72.601% (+1.8%) from 70.789% — bact:codacy-cleanup into PyThaiNLP:main

bact added 7 commits October 6, 2026 21:25
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
@sonarqubecloud

sonarqubecloud Bot commented Oct 6, 2026

Copy link
Copy Markdown

@bact
bact merged commit 05ca5cd into PyThaiNLP:main Oct 6, 2026
27 of 28 checks passed
@bact
bact deleted the codacy-cleanup branch October 6, 2026 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring a technical improvement which does not add any new features or change existing features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants