diff --git a/cpplint_clitest.py b/cpplint_clitest.py index 4185000..91c69cc 100755 --- a/cpplint_clitest.py +++ b/cpplint_clitest.py @@ -76,7 +76,7 @@ def run_shell_command(cmd: str, args: str, cwd="."): class TestUsage: - def testHelp(self): + def test_help(self): (status, out, err) = run_shell_command(BASE_CMD, "--help") assert status == 0 assert out == b"" @@ -183,10 +183,10 @@ def get_extra_command_args(self, cwd): for case in os.listdir(f"./samples/{folder}-sample") if case.endswith(".def") ], - name_func=lambda fun, _, x: f"test{x.args[0].capitalize()}Sample-{x.args[1]}", + name_func=lambda fun, _, x: f"test_{x.args[0]}_sample-{x.args[1]}", ) @pytest.mark.timeout(180) - def testSamples(self, folder, case): + def test_samples(self, folder, case): self.check_def(os.path.join(f"./samples/{folder}-sample", case + ".def")) @@ -198,7 +198,7 @@ def prepare_directory(cls, root): with open(os.path.join(root, ".git"), "a"): pass - def testCodeliteSample(self): + def test_codelite_sample(self): self.check_all_in_folder("./samples/codelite-sample", 1) @@ -210,7 +210,7 @@ def prepare_directory(cls, root): with open(os.path.join(root, ".hg"), "a"): pass - def testCodeliteSample(self): + def test_codelite_sample(self): self.check_all_in_folder("./samples/codelite-sample", 1) @@ -222,7 +222,7 @@ def prepare_directory(cls, root): with open(os.path.join(root, ".svn"), "a"): pass - def testCodeliteSample(self): + def test_codelite_sample(self): self.check_all_in_folder("./samples/codelite-sample", 1) diff --git a/pyproject.toml b/pyproject.toml index cb381d6..9316c89 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -127,11 +127,19 @@ lint.ignore = [ "FBT003", # flake8-boolean-trap "FIX002", # flake8-fixme "ISC003", # flake8-implicit-str-concat - "N802", # invalid-function-name "PIE790", # Unnecessary `pass` statement ] -lint.per-file-ignores."cpplint.py" = [ "ICN001", "PERF401", "PLR5501", "PLW0603", "PLW2901", "SIM102", "SIM108" ] -lint.per-file-ignores."cpplint_unittest.py" = [ "FLY002", "PLW0604", "SIM115", "UP031" ] +lint.per-file-ignores."cpplint.py" = [ + "ICN001", + "N802", + "PERF401", + "PLR5501", + "PLW0603", + "PLW2901", + "SIM102", + "SIM108", +] +lint.per-file-ignores."cpplint_unittest.py" = [ "FLY002", "N802", "PLW0604", "SIM115", "UP031" ] lint.mccabe.max-complexity = 29 lint.pylint.allow-magic-value-types = [ "bytes", "int", "str" ] lint.pylint.max-args = 10 # Default is 5 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy