-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: refactor fix: add dev requirements fix: add ruff formater
- Loading branch information
1 parent
1511c37
commit 021d9b3
Showing
10 changed files
with
69 additions
and
36 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,13 @@ | ||
CHANGES | ||
=============== | ||
|
||
kz-iin-validator 0.6.0 | ||
----------- | ||
|
||
### Changes between 0.5.0 and 0.6.0 | ||
* Function `validate_iin` was renamed to `safe_validate_iin` | ||
* Private function `_validate_iin` was renamed to `validate_iin` | ||
* Private property `_datetime` was renamed to `datetime` | ||
* Argument `raise_exception=False` from `safe_validate_iin` was deleted | ||
* Fix typos: `lenght` to `length` | ||
* Minor fixes |
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,6 @@ | ||
from duty import duty | ||
|
||
|
||
@duty | ||
def format(ctx): | ||
ctx.run("ruff kz_iin_validator/ tests/ duties.py --fix", title="Formating code") |
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,5 +1,5 @@ | ||
from .iin_validator import IIN, ValidatedIIN, _validate_iin, validate_iin | ||
from .iin_generator import generate_iin | ||
from .exceptions import IINValidateError | ||
from .iin_generator import generate_iin | ||
from .iin_validator import IIN, ValidatedIIN, safe_validate_iin, validate_iin | ||
|
||
__version__ = "0.5.0" | ||
__version__ = "0.6.0" |
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,3 @@ | ||
duty==0.7.0 | ||
pytest==7.2.1 | ||
ruff==0.0.261 |
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,11 @@ | ||
target-version = "py37" | ||
|
||
select = [ | ||
"E", # pycodestyle | ||
"F", # pyflakes | ||
"UP", # pyupgrade, | ||
"I", # isort | ||
] | ||
|
||
line-length = 200 | ||
per-file-ignores = {"__init__.py" = ["F401"]} |
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