-
-
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
Showing
1 changed file
with
15 additions
and
2 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 |
---|---|---|
|
@@ -4,7 +4,7 @@ requires = ["setuptools>=71"] | |
[project] | ||
name = "ai4ts" | ||
description = "AI for Time Series" | ||
authors = [{ name = "Wenjie Du", email = "[email protected]" }] | ||
authors = [{ name = "Wenjie Du", email = "[email protected]" }] | ||
dynamic = ["version", "readme", "dependencies", "optional-dependencies"] | ||
license = { file = "LICENSE" } | ||
requires-python = ">=3.8" | ||
|
@@ -61,11 +61,24 @@ exclude = [ | |
version = { attr = "ai4ts.version.__version__" } | ||
readme = { file = "README.md", content-type = "text/markdown" } | ||
|
||
[tool.black] | ||
line-length = 120 | ||
|
||
[tool.flake8] | ||
# People may argue that coding style is personal. This may be true if the project is personal and one works like a | ||
# hermit, but to PyPOTS and its community, the answer is NO. | ||
# We use Black and Flake8 to lint code style and keep the style consistent across all commits and pull requests. | ||
# Black only reformats the code, and Flake8 is necessary for checking for some other issues not covered by Black. | ||
|
||
# The Black line length is default as 88, while the default of Flake8 is 79. However, considering our monitors are | ||
# much more advanced nowadays, I extend the maximum line length to 120, like other project e.g. transformers. People | ||
# who prefer the default setting can keep using 88 or 79 while coding. Please ensure your code lines not exceeding 120. | ||
max-line-length = 120 | ||
# why ignore E203? Refer to https://github.com/PyCQA/pycodestyle/issues/373 | ||
# why ignore E231? Bad trailing comma, conflict with Black | ||
extend-ignore = """ | ||
E203 | ||
E203, | ||
E231, | ||
""" | ||
# ignore some errors that are not important in template files | ||
exclude = [ | ||
|