aboutsummaryrefslogtreecommitdiffstats
path: root/build/config/tests
diff options
context:
space:
mode:
authorDevtools Arcadia <arcadia-devtools@yandex-team.ru>2022-02-07 18:08:42 +0300
committerDevtools Arcadia <arcadia-devtools@mous.vla.yp-c.yandex.net>2022-02-07 18:08:42 +0300
commit1110808a9d39d4b808aef724c861a2e1a38d2a69 (patch)
treee26c9fed0de5d9873cce7e00bc214573dc2195b7 /build/config/tests
downloadydb-1110808a9d39d4b808aef724c861a2e1a38d2a69.tar.gz
intermediate changes
ref:cde9a383711a11544ce7e107a78147fb96cc4029
Diffstat (limited to 'build/config/tests')
-rw-r--r--build/config/tests/clang_tidy/config.yaml29
-rw-r--r--build/config/tests/clang_tidy/ya.make4
-rw-r--r--build/config/tests/flake8/flake8.conf35
-rw-r--r--build/config/tests/flake8/ya.make4
-rw-r--r--build/config/tests/ya.make4
5 files changed, 76 insertions, 0 deletions
diff --git a/build/config/tests/clang_tidy/config.yaml b/build/config/tests/clang_tidy/config.yaml
new file mode 100644
index 0000000000..d55707592c
--- /dev/null
+++ b/build/config/tests/clang_tidy/config.yaml
@@ -0,0 +1,29 @@
+Checks: >
+ -*,
+ arcadia-typeid-name-restriction,
+ bugprone-use-after-move,
+ readability-identifier-naming,
+CheckOptions:
+ - key: readability-identifier-naming.ClassCase
+ value: CamelCase
+ - key: readability-identifier-naming.PublicMemberCase
+ value: CamelCase
+ - key: readability-identifier-naming.ProtectedMemberCase
+ value: CamelCase
+ - key: readability-identifier-naming.ProtectedMemberSuffix
+ value: _
+ - key: readability-identifier-naming.PrivateMemberCase
+ value: CamelCase
+ - key: readability-identifier-naming.PrivateMemberSuffix
+ value: _
+ - key: readability-identifier-naming.FunctionCase
+ value: CamelCase
+ # do not tide public begin / end methods to workaround clang-tidy bug in range-based for loops
+ - key: readability-identifier-naming.PublicMethodIgnoredRegexp
+ value: "(begin|end|empty|size|ysize|front|back)"
+ - key: readability-identifier-naming.PublicMethodCase
+ value: CamelCase
+ - key: readability-identifier-naming.ProtectedMethodCase
+ value: CamelCase
+ - key: readability-identifier-naming.PrivateMethodCase
+ value: CamelCase
diff --git a/build/config/tests/clang_tidy/ya.make b/build/config/tests/clang_tidy/ya.make
new file mode 100644
index 0000000000..fc6544f38f
--- /dev/null
+++ b/build/config/tests/clang_tidy/ya.make
@@ -0,0 +1,4 @@
+OWNER(
+ g:cpp-committee
+ g:yatest
+)
diff --git a/build/config/tests/flake8/flake8.conf b/build/config/tests/flake8/flake8.conf
new file mode 100644
index 0000000000..8af22b5d4d
--- /dev/null
+++ b/build/config/tests/flake8/flake8.conf
@@ -0,0 +1,35 @@
+[flake8]
+select =
+ E, W, # pep8 errors and warnings
+ F, # pyflakes
+ C9, # McCabe
+ N8, # Naming Conventions
+ #B, S, # bandit
+ #C, # commas
+ #D, # docstrings
+ #P, # string-format
+ #Q, # quotes
+
+ignore =
+ E122, # continuation line missing indentation or outdented
+ E123, # closing bracket does not match indentation of opening bracket's line
+ E127, # continuation line over-indented for visual indent
+ E131, # continuation line unaligned for hanging
+ E203, # whitespace before ':'
+ E225, # missing whitespace around operator
+ E226, # missing whitespace around arithmetic operator
+ E24, # multiple spaces after ',' or tab after ','
+ E275, # missing whitespace after keyword
+ E305, # expected 2 blank lines after end of function or class
+ E306, # expected 1 blank line before a nested definition
+ E402, # module level import not at top of file
+ E722, # do not use bare except, specify exception instead
+ E731, # do not assign a lambda expression, use a def
+ E741, # do not use variables named 'l', 'O', or 'I'
+
+ F722, # syntax error in forward annotation
+
+ W503, # line break before binary operator
+ W504, # line break after binary operator
+
+max-line-length = 200
diff --git a/build/config/tests/flake8/ya.make b/build/config/tests/flake8/ya.make
new file mode 100644
index 0000000000..c4ba4105e0
--- /dev/null
+++ b/build/config/tests/flake8/ya.make
@@ -0,0 +1,4 @@
+OWNER(
+ g:python-committee
+ g:yatest
+)
diff --git a/build/config/tests/ya.make b/build/config/tests/ya.make
new file mode 100644
index 0000000000..146c3f63ad
--- /dev/null
+++ b/build/config/tests/ya.make
@@ -0,0 +1,4 @@
+OWNER(
+ shadchin
+ g:yatest
+)