Skip to content

Commit 2b0a5a0

Browse files
committed
chore: added ci/tooling
1 parent 1364e0b commit 2b0a5a0

File tree

6 files changed

+81
-0
lines changed

6 files changed

+81
-0
lines changed

.github/workflows/ci.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.4.0
4+
hooks:
5+
- id: trailing-whitespace
6+
- id: end-of-file-fixer
7+
- id: check-yaml
8+
- id: check-added-large-files
9+
10+
- repo: https://github.com/psf/black
11+
rev: 23.3.0
12+
hooks:
13+
- id: black
14+
15+
- repo: https://github.com/pycqa/isort
16+
rev: 5.12.0
17+
hooks:
18+
- id: isort
19+
20+
- repo: https://github.com/pre-commit/mirrors-mypy
21+
rev: v1.3.0
22+
hooks:
23+
- id: mypy
24+
additional_dependencies: [types-all]

.pre-commit-config.yaml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.4.0
4+
hooks:
5+
- id: trailing-whitespace
6+
- id: end-of-file-fixer
7+
- id: check-yaml
8+
- id: check-added-large-files
9+
10+
- repo: https://github.com/psf/black
11+
rev: 23.3.0
12+
hooks:
13+
- id: black
14+
15+
- repo: https://github.com/pycqa/isort
16+
rev: 5.12.0
17+
hooks:
18+
- id: isort
19+
20+
- repo: https://github.com/pre-commit/mirrors-mypy
21+
rev: v1.3.0
22+
hooks:
23+
- id: mypy
24+
additional_dependencies: []

assets/.gitkeep

Whitespace-only changes.

pyproject.toml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
[build-system]
2+
requires = ["hatchling"]
3+
build-backend = "hatchling.build"
4+
5+
[project]
6+
name = "your-project"
7+
version = "0.1.0"
8+
authors = [
9+
{ name = "Tyler Bikaun", email = "[email protected]" },
10+
]
11+
description = "MaintKG - Maintenance Knowledge Graph"
12+
readme = "README.md"
13+
requires-python = ">=3.8"
14+
dependencies = []
15+
16+
[tool.black]
17+
line-length = 88
18+
target-version = ['py38']
19+
include = '\.pyi?$'
20+
21+
[tool.isort]
22+
profile = "black"
23+
multi_line_output = 3
24+
25+
[tool.mypy]
26+
python_version = "3.8"
27+
strict = true
28+
warn_return_any = true
29+
warn_unused_configs = true
30+
31+
[tool.pytest.ini_options]
32+
addopts = "-ra -q --cov=src"
33+
testpaths = ["tests"]

requirements.txt

1.08 KB
Binary file not shown.

tests/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)