-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
004b5dd
commit 33ead41
Showing
12 changed files
with
147 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
all: lint test clean | ||
|
||
.PHONY: dev | ||
dev: | ||
pip install -e .[test] | ||
pip install pre-commit | ||
|
||
.PHONY: lint | ||
lint: | ||
git add . | ||
pre-commit run --all-files | ||
|
||
.PHONY: test | ||
test: | ||
pytest tests -x -v --disable-warnings | ||
|
||
.PHONY: tox | ||
tox: | ||
tox | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -rf `find . -name __pycache__` | ||
rm -f `find . -type f -name '*.py[co]' ` | ||
rm -f `find . -type f -name '*~' ` | ||
rm -f `find . -type f -name '.*~' ` | ||
rm -rf .cache | ||
rm -rf .pytest_cache | ||
rm -rf .mypy_cache | ||
rm -rf htmlcov | ||
rm -rf *.egg-info | ||
rm -f .coverage | ||
rm -f .coverage.* | ||
rm -rf .tox | ||
rm -rf build | ||
|
||
.PHONY: push | ||
push: | ||
git push origin head | ||
|
||
.PHONY: amend | ||
amend: | ||
git add . | ||
git commit --amend --no-edit | ||
git push origin head -f | ||
|
||
.PHONY: stable | ||
stable: | ||
git checkout main | ||
git branch -D stable | ||
git checkout -b stable | ||
git push origin head -f | ||
git checkout main | ||
|
||
.PHONY: git | ||
git: | ||
git config --local user.email "hakancelikdev@gmail.com" | ||
git config --local user.name "Hakan Celik" | ||
|
||
.PHONY: publish | ||
publish: | ||
python -m pip install --upgrade pip | ||
python -m pip install --upgrade build | ||
python -m pip install --upgrade twine | ||
python -m build | ||
python -m twine upload dist/* | ||
|
||
.PHONY: docs | ||
docs: | ||
pip install -e .[docs] | ||
mkdocs serve |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
__version__ = "0.12.2" | ||
__version__ = "0.12.3" | ||
__description__ = "A linter, formatter for finding and removing unused import statements." |