-
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.
- Loading branch information
1 parent
f73b2e1
commit 056b7d6
Showing
20 changed files
with
232 additions
and
158 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,36 +1,74 @@ | ||
line-length = 97 | ||
|
||
target-version = "py38" | ||
|
||
[lint] | ||
# Enable flake8-bugbear (`B`) rules. | ||
select = [ | ||
"A", | ||
# "ANN", | ||
"B", | ||
"BLE", | ||
"C4", | ||
"C90", | ||
# "D", | ||
"E", | ||
"F", | ||
"FBT", | ||
"I", | ||
"RUF", | ||
"S", | ||
"YTT", | ||
"A", # flake8-builtins | ||
"ANN", # flake8-annotations | ||
"ARG", # flake8-unused-arguments | ||
"B", # flake8-bugbear | ||
"C4", # flake8-comprehensions | ||
"COM", # flake8-commas | ||
"D", # pydocstyle | ||
"D400", # pydocstyle: ends-in-period | ||
"D401", # pydocstyle: non-imperative-mood | ||
"E", # pycodestyle: errors | ||
"F", # Pyflakes | ||
"FLY", # flynt | ||
"FURB", # refurb | ||
"G", # flake8-logging-format | ||
"I", # isort | ||
"ISC", # flake8-implicit-str-concat | ||
"N", # pep8-naming | ||
"PERF", # Perflint | ||
"PIE", # flake8-pie | ||
"PL", # Pylint | ||
"PT", # flake8-pytest-style | ||
"PTH", # flake8-use-pathlib | ||
"Q", # flake8-quotes | ||
"RET", # flake8-return | ||
"RSE", # flake8-raise | ||
"RUF", # Ruff-specific rules | ||
"SIM", # flake8-simplify | ||
"T20", # flake8-print | ||
"TID", # flake8-tidy-imports | ||
"UP", # pyupgrade | ||
"W", # pycodestyle: warnings | ||
] | ||
ignore = [ | ||
"ANN101", # flake8-annotations: missing-type-self (deprecated) | ||
"ANN102", # flake8-annotations: missing-type-cls (deprecated) | ||
"ANN401", # flake8-annotations: any-type | ||
"B008", # flake8-bugbear: function-call-in-default-argument | ||
"COM812", # flake8-commas: missing-trailing-comma | ||
"E741", # pycodestyle: ambiguous-variable-name | ||
"PLR09", # Pylint: too-many-* | ||
"PLR1702", # Pylint: too-many-nested-blocks | ||
"SIM105", # flake8-simplify: suppressible-exception | ||
] | ||
preview = true | ||
|
||
# Never enforce `E501` (line length violations). | ||
# ignore = ["E501"] | ||
ignore = ["ANN101", "ANN102", "D203", "D213"] | ||
[lint.per-file-ignores] | ||
"__init__.py" = ["F401"] | ||
"tests/*.py" = [ | ||
"D100", | ||
"D101", | ||
"D102", | ||
"D103", | ||
"D104", | ||
"S101", | ||
"ANN001", | ||
"PLR2004", | ||
"N806", | ||
"T201", | ||
] | ||
|
||
[lint.pydocstyle] | ||
convention = "google" | ||
|
||
# Avoid trying to fix flake8-bugbear (`B`) violations. | ||
unfixable = ["B"] | ||
# # Never enforce `E501` (line length violations). | ||
# # ignore = ["E501"] | ||
# ignore = ["ANN101", "ANN102", "D203", "D213"] | ||
|
||
# Ignore `E402` (import violations) in all `__init__.py` files, and in `path/to/file.py`. | ||
[lint.per-file-ignores] | ||
"tests/*.py" = ["D100", "D101", "D102", "D103", "D104", "S101"] | ||
|
||
# "__init__.py" = ["E402"] | ||
# # Avoid trying to fix flake8-bugbear (`B`) violations. | ||
# unfixable = ["B"] |
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 @@ | ||
"""Parallel corpus as a graph.""" |
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,3 +1,5 @@ | ||
"""Utilities.""" | ||
|
||
import re | ||
from typing import List, TypeVar | ||
|
||
|
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.