Skip to content

Commit 52b0ddc

Browse files
authored
Merge pull request #1192 from bact/lint-tests
Run Ruff on tests and examples
2 parents dcc9205 + 8efde5c commit 52b0ddc

48 files changed

Lines changed: 1 addition & 48 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ jobs:
2525
- name: Ruff
2626
uses: astral-sh/ruff-action@v3
2727
with:
28-
src: "./pythainlp"
28+
src: "./pythainlp ./tests ./examples"
2929
args: check --fix --verbose --line-length 79 --select I,W,C901,W291,W293

docs/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# SPDX-FileCopyrightText: 2016-2026 PyThaiNLP Project
32
# SPDX-FileType: SOURCE
43
# SPDX-License-Identifier: Apache-2.0

examples/khavee.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# SPDX-FileCopyrightText: 2016-2026 PyThaiNLP Project
32
# SPDX-FileType: SOURCE
43
# SPDX-License-Identifier: Apache-2.0

tests/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# SPDX-FileCopyrightText: 2016-2026 PyThaiNLP Project
32
# SPDX-FileType: SOURCE
43
# SPDX-License-Identifier: Apache-2.0

tests/compact/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# SPDX-FileCopyrightText: 2016-2026 PyThaiNLP Project
32
# SPDX-FileType: SOURCE
43
# SPDX-License-Identifier: Apache-2.0

tests/compact/test_cli.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# SPDX-FileCopyrightText: 2016-2026 PyThaiNLP Project
32
# SPDX-FileType: SOURCE
43
# SPDX-License-Identifier: Apache-2.0

tests/compact/testc_parse.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# SPDX-FileCopyrightText: 2016-2026 PyThaiNLP Project
32
# SPDX-FileType: SOURCE
43
# SPDX-License-Identifier: Apache-2.0

tests/compact/testc_tokenize.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# SPDX-FileCopyrightText: 2016-2026 PyThaiNLP Project
32
# SPDX-FileType: SOURCE
43
# SPDX-License-Identifier: Apache-2.0

tests/compact/testc_tools.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# SPDX-FileCopyrightText: 2016-2026 PyThaiNLP Project
32
# SPDX-FileType: SOURCE
43
# SPDX-License-Identifier: Apache-2.0

tests/compact/testc_transliterate.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# SPDX-FileCopyrightText: 2016-2026 PyThaiNLP Project
32
# SPDX-FileType: SOURCE
43
# SPDX-License-Identifier: Apache-2.0

0 commit comments

Comments
 (0)