forked from microsoft/autogen
-
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.
pyproject.toml & switch to Ruff (microsoft#976)
* unify config to pyproject.toml replace flake8 with Ruff * drop configs * update * fixing * Apply suggestions from code review Co-authored-by: Zvi Baratz <[email protected]> * setup * ci * pr template * reword --------- Co-authored-by: Zvi Baratz <[email protected]> Co-authored-by: Li Jiang <[email protected]>
- Loading branch information
1 parent
a8752b6
commit 73bb6e7
Showing
8 changed files
with
62 additions
and
30 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
[metadata] | ||
license_file = "LICENSE" | ||
description-file = "README.md" | ||
|
||
|
||
[tool.pytest.ini_options] | ||
addopts = '-m "not conda"' | ||
markers = [ | ||
"conda: test related to conda forge distribution" | ||
] | ||
|
||
[tool.black] | ||
# https://github.com/psf/black | ||
line-length = 120 | ||
exclude = "(.eggs|.git|.hg|.mypy_cache|.venv|_build|buck-out|build|dist)" | ||
|
||
|
||
[tool.ruff] | ||
line-length = 120 | ||
# Enable Pyflakes `E` and `F` codes by default. | ||
select = [ | ||
"E", "W", # see: https://pypi.org/project/pycodestyle | ||
"F", # see: https://pypi.org/project/pyflakes | ||
# "D", # see: https://pypi.org/project/pydocstyle | ||
# "N", # see: https://pypi.org/project/pep8-naming | ||
# "S", # see: https://pypi.org/project/flake8-bandit | ||
] | ||
ignore = [ | ||
"E501", | ||
"F401", | ||
"F403", | ||
"C901", | ||
] | ||
# Exclude a variety of commonly ignored directories. | ||
exclude = [ | ||
".eggs", | ||
".git", | ||
".mypy_cache", | ||
".ruff_cache", | ||
"__pypackages__", | ||
"_build", | ||
"build", | ||
"dist", | ||
"docs" | ||
] | ||
ignore-init-module-imports = true | ||
unfixable = ["F401"] | ||
|
||
[tool.ruff.mccabe] | ||
# Unlike Flake8, default to a complexity level of 10. | ||
max-complexity = 10 |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -49,7 +49,6 @@ | |
"joblibspark>=0.5.0", | ||
], | ||
"test": [ | ||
"flake8>=3.8.4", | ||
"thop", | ||
"pytest>=6.1.1", | ||
"coverage>=5.3", | ||
|