Skip to content

Commit 5c10d8e

Browse files
authored
adopt PEP621 (#40)
* adopt PEP621 * CR * CR * CR
1 parent 3c8e81f commit 5c10d8e

File tree

6 files changed

+46
-58
lines changed

6 files changed

+46
-58
lines changed

.github/workflows/lint_python.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,13 @@ jobs:
88
- uses: actions/setup-python@v4
99
with:
1010
python-version: 3.x
11-
- run: pip install bandit black codespell flake8 isort mypy pytest pyupgrade safety
12-
- run: bandit --configfile bandit.yaml --recursive .
11+
- run: pip install bandit black codespell flake8 isort mypy pytest pyupgrade safety junit_xml yamlish pytest-clarity
12+
- run: bandit --configfile pyproject.toml --recursive .
1313
- run: black --check .
1414
- run: codespell --skip="*.tap" --skip "*.xml" # --ignore-words-list=""
1515
- run: flake8 . --max-complexity=24 --max-line-length=88 --show-source --statistics
16-
- run: isort --check-only --profile black .
17-
- run: pip install junit_xml yamlish pytest-clarity
18-
- run: mypy --ignore-missing-imports .
16+
- run: isort --check-only .
17+
- run: mypy .
1918
- run: pytest -vv .
2019
- run: pytest --doctest-modules .
2120
- run: shopt -s globstar && pyupgrade --py36-plus **/*.py

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
/.venv
55

66
.mypy_cache
7+
tap2junit.egg-info/
78

89
dist
9-
build
10+
build

Pipfile

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

bandit.yaml

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

pyproject.toml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[project]
2+
name = "tap2junit"
3+
version = "0.1.5"
4+
description = "Tap13 to jUnit"
5+
readme = "README.md"
6+
authors = [
7+
{name = "Node.js contributor", email = "cclauss@me.com"}
8+
]
9+
keywords = ["tap13", "junit"]
10+
classifiers = [
11+
"Development Status :: 4 - Beta",
12+
"Intended Audience :: Developers",
13+
"License :: OSI Approved :: Apache License, Version 2.0",
14+
"Programming Language :: Python :: 3",
15+
"Programming Language :: Python :: 3.7",
16+
"Programming Language :: Python :: 3.8",
17+
"Programming Language :: Python :: 3.9",
18+
"Programming Language :: Python :: 3.10",
19+
"Topic :: Software Development :: Build Tools",
20+
]
21+
dependencies = [
22+
"junit_xml",
23+
"yamlish"
24+
]
25+
26+
[project.scripts]
27+
tap2junit = "tap2junit.__main__:main"
28+
29+
[project.urls]
30+
repository = "https://github.com/nodejs/tap2junit"
31+
32+
[tool.bandit]
33+
exclude_dirs = ["test"]
34+
35+
[tool.isort]
36+
profile = "black"
37+
38+
[tool.mypy]
39+
exclude = ["build/"]
40+
ignore_missing_imports = true

setup.py

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

0 commit comments

Comments
 (0)