-
Notifications
You must be signed in to change notification settings - Fork 2
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
c0c7efb
commit 56690b6
Showing
19 changed files
with
158 additions
and
64 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[flake8] | ||
extend-ignore = D1, D2, E1, E2, E3, E501, W1, W2, W3, W5 |
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,51 @@ | ||
# See https://pre-commit.com for more information | ||
# See https://pre-commit.com/hooks.html for more hooks | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-toml | ||
- id: check-added-large-files | ||
- repo: https://github.com/charliermarsh/ruff-pre-commit | ||
rev: v0.1.6 | ||
hooks: | ||
- id: ruff | ||
args: [--fix, --exit-non-zero-on-fix] | ||
- repo: https://github.com/psf/black | ||
rev: 23.11.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 6.1.0 | ||
hooks: | ||
- id: flake8 | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/python-jsonschema/check-jsonschema | ||
rev: 0.27.1 | ||
hooks: | ||
- id: check-github-workflows | ||
- repo: https://github.com/gitleaks/gitleaks | ||
rev: v8.18.1 | ||
hooks: | ||
- id: gitleaks | ||
# - repo: https://github.com/pre-commit/mirrors-prettier | ||
# rev: v3.1.0 | ||
# hooks: | ||
# - id: prettier | ||
# - repo: https://github.com/returntocorp/semgrep | ||
# rev: v1.50.0 | ||
# hooks: | ||
# - id: semgrep | ||
# args: ["--config", "auto", "--error", "--skip-unknown-extensions"] | ||
- repo: https://github.com/dosisod/refurb | ||
rev: v1.24.0 | ||
hooks: | ||
- id: refurb | ||
# additional_dependencies: | ||
# - mypy<1.7 # SEE: https://github.com/dosisod/refurb/issues/305 |
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 |
---|---|---|
|
@@ -43,4 +43,4 @@ | |
<script src="//unpkg.com/docsify-footer-enh/dist/docsify-footer-enh.min.js"></script> | ||
</body> | ||
|
||
</html> | ||
</html> |
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,49 @@ | ||
# activate venv | ||
venv: | ||
. .venv/bin/activate | ||
|
||
# install euchre-cli from local | ||
install: | ||
pip install -q ."[test]" | ||
|
||
# install euchre-cli via flit | ||
flit-install: | ||
pip install flit | ||
flit install | ||
|
||
# install editable | ||
dev-install: | ||
pip install -q -e . | ||
|
||
# lint and format | ||
lint: | ||
pre-commit run --show-diff-on-failure --all-files | ||
|
||
# run all tests | ||
test: install | ||
pytest | ||
|
||
# run all tests with coverage | ||
test-cov: install | ||
pytest -v --cov-report xml --cov euchre | ||
|
||
# build dist | ||
build: | ||
flit build | ||
|
||
# generate homebrew formula | ||
brew: | ||
pip install -q ."[dev]" | ||
poet -f euchre-cli >> formula.rb | ||
|
||
# remove artifacts | ||
# TODO: remove __pycache__ dirs from src/ and tests/ | ||
cleanup: | ||
rm -f .coverage | ||
rm -f coverage.xml | ||
rm -f formula.rb | ||
rm -rf .pytest_cache | ||
rm -rf build | ||
rm -rf dist | ||
rm -rf *.egg-info | ||
rm -rf .ruff_cache |
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
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 |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
from euchre.command.rules import rules | ||
from euchre.util.log_util import logger_init | ||
|
||
|
||
logger_init() | ||
|
||
|
||
|
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
Oops, something went wrong.