Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: create setup.cfg #3181

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions .flake8

This file was deleted.

5 changes: 0 additions & 5 deletions .isort.cfg

This file was deleted.

2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repos:
hooks:
- id: yapf
name: yapf formatter
args: ['--style=.style.yapf', '--parallel', '--in-place']
args: ['--style=setup.cfg', '--parallel', '--in-place']

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v13.0.1
Expand Down
5 changes: 0 additions & 5 deletions .style.yapf

This file was deleted.

6 changes: 0 additions & 6 deletions pytest.ini

This file was deleted.

39 changes: 39 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[isort]
line_length = 120
multi_line_output = 3
include_trailing_comma = True
ignore_comments = True

[yapf]
based_on_style = google
column_limit = 120
split_before_logical_operator = True
spaces_before_comment = 4

[flake8]
ignore =
;W503 line break before binary operator
W503,
;E203 whitespace before ':'
E203,
exclude =
.tox,
.git,
__pycache__,
build,
dist,
*.pyc,
*.egg-info,
.cache,
.eggs

max-line-length = 120

per-file-ignores = __init__.py:F401

[tool: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