Skip to content

Commit 034f16b

Browse files
authored
Merge pull request #1226 from bact/tox-pyproject
Integrate tox.ini into pyproject.toml
2 parents c441c66 + 7855671 commit 034f16b

File tree

3 files changed

+15
-21
lines changed

3 files changed

+15
-21
lines changed

.github/workflows/unittest.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ on:
1414
- "Makefile"
1515
- "MANIFEST.in"
1616
- "pyproject.toml"
17-
- "tox.ini"
1817
pull_request:
1918
branches:
2019
- dev
@@ -27,7 +26,6 @@ on:
2726
- "Makefile"
2827
- "MANIFEST.in"
2928
- "pyproject.toml"
30-
- "tox.ini"
3129

3230
jobs:
3331
unittest:

pyproject.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,3 +318,18 @@ select = [
318318
# Some rules are ignored for now; we can consider enabling them in the future.
319319
# S101 is use of assert statement, should be an easy fix.
320320
extend-ignore = ["E402", "E501", "E722", "S101", "S202", "S301", "S310"]
321+
322+
[tool.tox]
323+
envlist = ["py39", "py310", "py311", "py312", "py313", "py3", "flake8"]
324+
skip_missing_interpreters = true
325+
326+
[tool.tox.testenv]
327+
setenv = { PYTHONPATH = "{toxinidir}:{toxinidir}/pythainlp" }
328+
changedir = "tests"
329+
commands = ["discover"]
330+
deps = ["discover"]
331+
332+
[tool.tox.envs.flake8]
333+
basepython = "python"
334+
deps = ["flake8"]
335+
commands = ["flake8 pythainlp"]

tox.ini

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)