Skip to content

Commit

Permalink
feat: update pyproject.toml;
Browse files Browse the repository at this point in the history
  • Loading branch information
WenjieDu committed Aug 22, 2024
1 parent 9c9612c commit 78cecfb
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 = [
Expand Down

0 comments on commit 78cecfb

Please sign in to comment.