mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-04-28 19:55:29 +00:00
[refactor] restructure configuration files (#2977)
* gh: move CONTRIBUTING to .github * chore: move isort config to pyproject * chore: move pytest config to pyproject * chore: move yapf config to pyproject * chore: move clang-format config to pre-commit
This commit is contained in:
parent
823f3b9cf4
commit
35c8f4ce47
@ -1 +0,0 @@
|
|||||||
BasedOnStyle: Google
|
|
@ -1,5 +0,0 @@
|
|||||||
[settings]
|
|
||||||
line_length = 120
|
|
||||||
multi_line_output=3
|
|
||||||
include_trailing_comma = true
|
|
||||||
ignore_comments = true
|
|
@ -11,13 +11,14 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: yapf
|
- id: yapf
|
||||||
name: yapf formatter
|
name: yapf formatter
|
||||||
args: ['--style=.style.yapf', '--parallel', '--in-place']
|
args: ['--style=pyproject.toml', '--parallel', '--in-place']
|
||||||
|
|
||||||
- repo: https://github.com/pre-commit/mirrors-clang-format
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
||||||
rev: v13.0.1
|
rev: v13.0.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: clang-format
|
- id: clang-format
|
||||||
name: clang formatter
|
name: clang formatter
|
||||||
|
args: [--style, "{BasedOnStyle: Google}"]
|
||||||
|
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v4.3.0
|
rev: v4.3.0
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
[style]
|
|
||||||
based_on_style = google
|
|
||||||
spaces_before_comment = 4
|
|
||||||
split_before_logical_operator = true
|
|
||||||
column_limit = 120
|
|
19
pyproject.toml
Normal file
19
pyproject.toml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
[tool.isort]
|
||||||
|
line_length = 120
|
||||||
|
multi_line_output = 3
|
||||||
|
include_trailing_comma = true
|
||||||
|
ignore_comments = true
|
||||||
|
|
||||||
|
[tool.yapf]
|
||||||
|
based_on_style = "google"
|
||||||
|
spaces_before_comment = 4
|
||||||
|
split_before_logical_operator = true
|
||||||
|
column_limit = 120
|
||||||
|
|
||||||
|
[tool.pytest.ini_options]
|
||||||
|
markers = [
|
||||||
|
"cpu: tests which can run on CPU",
|
||||||
|
"gpu: tests which requires a single GPU",
|
||||||
|
"dist: tests which are run in a multi-GPU or multi-machine environment",
|
||||||
|
"experiment: tests for experimental features",
|
||||||
|
]
|
@ -1,6 +0,0 @@
|
|||||||
[pytest]
|
|
||||||
markers =
|
|
||||||
cpu: tests which can run on CPU
|
|
||||||
gpu: tests which requires a single GPU
|
|
||||||
dist: tests which are run in a multi-GPU or multi-machine environment
|
|
||||||
experiment: tests for experimental features
|
|
Loading…
Reference in New Issue
Block a user