Skip to content

Commit 4af96de

Browse files
authored
Merge pull request #6 from neuralmagic/parfeniukink/configurations-improvements
Dev tools configurations
2 parents ff3f695 + f0b4a40 commit 4af96de

File tree

3 files changed

+42
-16
lines changed

3 files changed

+42
-16
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,3 +160,7 @@ cython_debug/
160160
# and can be added to the global gitignore or merged into this file. For a more nuclear
161161
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
162162
#.idea/
163+
164+
165+
# MacOS files
166+
.DS_Store

Makefile

Lines changed: 36 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,54 @@
1+
.PHONY: install
12
install:
2-
pip install -r requirements.txt
3+
python -m pip install -r requirements.txt
34

4-
install-dev:
5-
pip install -e .[dev]
5+
.PHONY: install.dev
6+
install.dev:
7+
python -m pip install -e .[dev]
68

9+
.PHONY: build
10+
build:
11+
python setup.py sdist bdist_wheel
12+
13+
14+
.PHONY: quality
715
quality:
8-
ruff check src tests
9-
isort --check-only src tests
10-
flake8 src tests --max-line-length 88
11-
mypy src
16+
python -m ruff check src tests
17+
python -m isort --check src tests
18+
python -m flake8 src tests --max-line-length 88
19+
python -m mypy src
20+
1221

22+
.PHONY: style
1323
style:
14-
ruff format src tests
15-
isort src tests
16-
flake8 src tests --max-line-length 88
24+
python -m ruff format src tests
25+
python -m isort src tests
26+
python -m flake8 src tests --max-line-length 88
27+
1728

29+
.PHONY: test
1830
test:
19-
python -m pytest -s -vvv --cache-clear tests/
31+
python -m pytest -s -vvv --cache-clear tests
2032

21-
build:
22-
python setup.py sdist bdist_wheel
33+
.PHONY: test.unit
34+
test.unit:
35+
python -m pytest tests/unit
36+
37+
.PHONY: test.integration
38+
test.integration:
39+
python -m pytest tests/integration
2340

41+
.PHONY: test.e2e
42+
test.e2e:
43+
python -m pytest tests/e2e
44+
45+
46+
.PHONY: clean
2447
clean:
25-
rm -rf __pycache__
2648
rm -rf build
2749
rm -rf dist
2850
rm -rf *.egg-info
2951
find . -type f -name "*.pyc" -delete
3052
find . -type d -name "__pycache__" -exec rm -r {} +
3153
rm -rf .mypy_cache
3254
rm -rf .pytest_cache
33-
34-
.PHONY: install install-dev quality style test test-unit test-integration test-e2e test-smoke test-sanity test-regression build clean

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ lint.select = ["E", "F", "W"]
2020
max-line-length = 88
2121

2222
[tool.pytest.ini_options]
23+
addopts = '-s -vvv --cache-clear'
24+
asyncio_mode = 'auto'
2325
markers = [
2426
"smoke: quick tests to check basic functionality",
2527
"sanity: detailed tests to ensure major functions work correctly",

0 commit comments

Comments
 (0)