-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update pre-commit settings and add mypy typing to kanren.core
- Loading branch information
1 parent
0daa3ad
commit 7f9accb
Showing
17 changed files
with
227 additions
and
143 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 |
---|---|---|
@@ -1,35 +1,45 @@ | ||
exclude: | | ||
(?x)^( | ||
versioneer\.py| | ||
kanren/_version\.py| | ||
doc/.*| | ||
bin/.* | ||
)$ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.1.0 | ||
hooks: | ||
- id: debug-statements | ||
exclude: | | ||
(?x)^( | ||
kanren/core\.py| | ||
)$ | ||
- id: check-merge-conflict | ||
- repo: https://github.com/psf/black | ||
rev: 20.8b1 | ||
rev: 22.3.0 | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
exclude: | | ||
(?x)^( | ||
versioneer\.py| | ||
kanren/_version\.py| | ||
doc/.*| | ||
bin/.* | ||
)$ | ||
- repo: https://gitlab.com/pycqa/flake8 | ||
rev: 3.8.4 | ||
hooks: | ||
- id: flake8 | ||
exclude: | | ||
(?x)^( | ||
versioneer\.py| | ||
kanren/_version\.py| | ||
doc/.*| | ||
bin/.* | ||
)$ | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.5.2 | ||
rev: 5.6.4 | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/humitos/mirrors-autoflake.git | ||
rev: v1.1 | ||
hooks: | ||
- id: autoflake | ||
exclude: | | ||
(?x)^( | ||
versioneer\.py| | ||
kanren/_version\.py| | ||
doc/.*| | ||
bin/.* | ||
)$ | ||
(?x)^( | ||
.*/?__init__\.py| | ||
)$ | ||
args: ['--in-place', '--remove-all-unused-imports', '--remove-unused-variable'] | ||
- repo: https://github.com/pre-commit/mirrors-mypy | ||
rev: v0.931 | ||
hooks: | ||
- id: mypy | ||
additional_dependencies: | ||
- types-setuptools |
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
|
||
from kanren import Relation, conde, facts, run, var | ||
|
||
|
||
father = Relation() | ||
mother = Relation() | ||
|
||
|
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 |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
""" | ||
from kanren import Relation, fact, run, var | ||
|
||
|
||
adjacent = Relation() | ||
coastal = Relation() | ||
|
||
|
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
Oops, something went wrong.