Skip to content

Commit ed26b9f

Browse files
committed
build: use hatch for project management
gh-23
1 parent f5c1557 commit ed26b9f

File tree

6 files changed

+76
-1241
lines changed

6 files changed

+76
-1241
lines changed

.gitignore

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
*~
2-
/env
3-
*.egg-info
41
__pycache__
2+
__version__.py
3+
.coverage
54
.DS_Store
5+
.mypy_cache
6+
*.egg-info
7+
*~
68
/build
9+
/env
10+
dist

Makefile

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11

2-
.PHONY: install check check-types check-syntax check-tests test
3-
4-
install:
5-
pip install -e .[dev]
2+
.PHONY: check check-types check-syntax check-tests test
63

74
check: check-types check-syntax check-tests
85

96
check-types:
107
mypy autonity tests
118

129
check-syntax:
13-
flake8 autonity tests
14-
pylint autonity tests
10+
hatch run lint
1511

1612
check-tests test:
17-
python -m unittest discover tests
13+
hatch run test
14+
15+
coverage:
16+
hatch run cov
17+
18+
clean:
19+
hatch run clean
20+

0 commit comments

Comments
 (0)