From 530211196bd5a92c51181401064e31b1748f0cf5 Mon Sep 17 00:00:00 2001 From: gmuloc Date: Thu, 2 Jan 2025 11:12:14 +0100 Subject: [PATCH] Bump: Ruff to 0.8.4 --- .pre-commit-config.yaml | 2 +- j2lint/__init__.py | 2 +- j2lint/__main__.py | 2 +- j2lint/cli.py | 2 +- j2lint/linter/__init__.py | 2 +- j2lint/linter/collection.py | 2 +- j2lint/linter/error.py | 2 +- j2lint/linter/indenter/__init__.py | 2 +- j2lint/linter/indenter/node.py | 2 +- j2lint/linter/indenter/statement.py | 2 +- j2lint/linter/rule.py | 2 +- j2lint/linter/runner.py | 2 +- j2lint/logger.py | 2 +- j2lint/rules/__init__.py | 2 +- j2lint/rules/jinja_operator_has_spaces_rule.py | 2 +- j2lint/rules/jinja_statement_delimiter_rule.py | 2 +- j2lint/rules/jinja_statement_has_spaces_rule.py | 2 +- j2lint/rules/jinja_template_indentation_rule.py | 2 +- j2lint/rules/jinja_template_no_tabs_rule.py | 2 +- j2lint/rules/jinja_template_single_statement_rule.py | 2 +- j2lint/rules/jinja_template_syntax_error_rule.py | 2 +- j2lint/rules/jinja_variable_has_space_rule.py | 2 +- j2lint/rules/jinja_variable_name_case_rule.py | 2 +- j2lint/rules/jinja_variable_name_format_rule.py | 2 +- j2lint/utils.py | 2 +- tests/__init__.py | 2 +- tests/conftest.py | 2 +- tests/data/test.j2 | 2 +- tests/test_cli.py | 2 +- tests/test_linter/__init__.py | 2 +- tests/test_linter/data/disable-rule-3.j2 | 2 +- tests/test_linter/data/test.j2 | 2 +- tests/test_linter/test_collection.py | 2 +- tests/test_linter/test_error.py | 2 +- tests/test_linter/test_indenter/__init__.py | 2 +- tests/test_linter/test_indenter/test_node.py | 2 +- tests/test_linter/test_indenter/test_statement.py | 2 +- tests/test_linter/test_rule.py | 2 +- tests/test_linter/test_runner.py | 2 +- tests/test_logger.py | 2 +- tests/test_rules/__init__.py | 2 +- tests/test_rules/data/jinja_operator_has_spaces_rule.j2 | 2 +- tests/test_rules/data/jinja_statement_delimiter_rule.j2 | 2 +- tests/test_rules/data/jinja_statement_has_spaces_rule.j2 | 2 +- .../data/jinja_template_indentation_rule.IndexError.j2 | 2 +- .../data/jinja_template_indentation_rule.JinjaLinterError.j2 | 2 +- tests/test_rules/data/jinja_template_indentation_rule.j2 | 2 +- .../data/jinja_template_indentation_rule.missing_end_tag.j2 | 2 +- tests/test_rules/data/jinja_template_no_tabs_rule.j2 | 2 +- tests/test_rules/data/jinja_template_single_statement_rule.j2 | 2 +- tests/test_rules/data/jinja_template_syntax_error_rule.j2 | 2 +- tests/test_rules/data/jinja_variable_has_space_rule.j2 | 2 +- tests/test_rules/data/jinja_variable_name_case_rule.j2 | 2 +- tests/test_rules/data/jinja_variable_name_format_rule.j2 | 2 +- tests/test_rules/test_rules.py | 2 +- tests/test_utils.py | 2 +- tests/utils.py | 2 +- 57 files changed, 57 insertions(+), 57 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index df7f493..c2f0559 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -43,7 +43,7 @@ repos: - --no-extra-eol - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.2 + rev: v0.8.4 hooks: - id: ruff name: Run Ruff linter diff --git a/j2lint/__init__.py b/j2lint/__init__.py index 9f33b49..ee383e6 100644 --- a/j2lint/__init__.py +++ b/j2lint/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """__init__.py - A command-line utility that checks for best practices in Jinja2.""" diff --git a/j2lint/__main__.py b/j2lint/__main__.py index 89eec3d..c66a03c 100644 --- a/j2lint/__main__.py +++ b/j2lint/__main__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """__main__.py - A command-line utility that checks for best practices in Jinja2.""" diff --git a/j2lint/cli.py b/j2lint/cli.py index 443b019..a771433 100644 --- a/j2lint/cli.py +++ b/j2lint/cli.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """cli.py - Command line argument parser.""" diff --git a/j2lint/linter/__init__.py b/j2lint/linter/__init__.py index 5934387..682efb0 100644 --- a/j2lint/linter/__init__.py +++ b/j2lint/linter/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """j2lint.linter packages.""" diff --git a/j2lint/linter/collection.py b/j2lint/linter/collection.py index b8ddc07..5f3ab62 100644 --- a/j2lint/linter/collection.py +++ b/j2lint/linter/collection.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """collection.py - Class to create a collection of linting rules.""" diff --git a/j2lint/linter/error.py b/j2lint/linter/error.py index 3a8f4e0..ad45e3c 100644 --- a/j2lint/linter/error.py +++ b/j2lint/linter/error.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """error.py - Error classes to format the lint errors.""" diff --git a/j2lint/linter/indenter/__init__.py b/j2lint/linter/indenter/__init__.py index 6f7a477..a591a4d 100644 --- a/j2lint/linter/indenter/__init__.py +++ b/j2lint/linter/indenter/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """j2lint.linter.indenter submodule.""" diff --git a/j2lint/linter/indenter/node.py b/j2lint/linter/indenter/node.py index ed079e8..240da07 100644 --- a/j2lint/linter/indenter/node.py +++ b/j2lint/linter/indenter/node.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """node.py - Class node for creating a parse tree for jinja statements and checking jinja statement indentation.""" diff --git a/j2lint/linter/indenter/statement.py b/j2lint/linter/indenter/statement.py index f2ee438..8507058 100644 --- a/j2lint/linter/indenter/statement.py +++ b/j2lint/linter/indenter/statement.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """statement.py - Class and variables for jinja statements.""" diff --git a/j2lint/linter/rule.py b/j2lint/linter/rule.py index c5c9d05..e3b6a2f 100644 --- a/j2lint/linter/rule.py +++ b/j2lint/linter/rule.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """rule.py - Base class for all the lint rules with functions for matching line and text based rule.""" diff --git a/j2lint/linter/runner.py b/j2lint/linter/runner.py index 1802889..6d5b593 100644 --- a/j2lint/linter/runner.py +++ b/j2lint/linter/runner.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """runner.py - Class to run the rules collection for all the files.""" diff --git a/j2lint/logger.py b/j2lint/logger.py index 9ffde3e..7604e97 100644 --- a/j2lint/logger.py +++ b/j2lint/logger.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """logger.py - Creates logger object.""" diff --git a/j2lint/rules/__init__.py b/j2lint/rules/__init__.py index 57941e2..5f535ce 100644 --- a/j2lint/rules/__init__.py +++ b/j2lint/rules/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """j2lint built-in rules.""" diff --git a/j2lint/rules/jinja_operator_has_spaces_rule.py b/j2lint/rules/jinja_operator_has_spaces_rule.py index 1595e75..b573e9b 100644 --- a/j2lint/rules/jinja_operator_has_spaces_rule.py +++ b/j2lint/rules/jinja_operator_has_spaces_rule.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """jinja_operator_has_spaces_rule.py - Rule class to check if operator has surrounding spaces.""" diff --git a/j2lint/rules/jinja_statement_delimiter_rule.py b/j2lint/rules/jinja_statement_delimiter_rule.py index cbe88a9..33352f6 100644 --- a/j2lint/rules/jinja_statement_delimiter_rule.py +++ b/j2lint/rules/jinja_statement_delimiter_rule.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """jinja_statement_delimiter_rule.py - Rule class to check if jinja delimiters are wrong.""" diff --git a/j2lint/rules/jinja_statement_has_spaces_rule.py b/j2lint/rules/jinja_statement_has_spaces_rule.py index 7bd37b2..ec634ce 100644 --- a/j2lint/rules/jinja_statement_has_spaces_rule.py +++ b/j2lint/rules/jinja_statement_has_spaces_rule.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """jinja_statement_has_spaces_rule.py - Rule class to check if jinja statement has at least a single space surrounding the delimiter.""" diff --git a/j2lint/rules/jinja_template_indentation_rule.py b/j2lint/rules/jinja_template_indentation_rule.py index 5e33831..e2c485b 100644 --- a/j2lint/rules/jinja_template_indentation_rule.py +++ b/j2lint/rules/jinja_template_indentation_rule.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """jinja_template_indentation_rule.py - Rule class to check the jinja statement indentation is correct.""" diff --git a/j2lint/rules/jinja_template_no_tabs_rule.py b/j2lint/rules/jinja_template_no_tabs_rule.py index 09963c2..b772bc3 100644 --- a/j2lint/rules/jinja_template_no_tabs_rule.py +++ b/j2lint/rules/jinja_template_no_tabs_rule.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """jinja_template_no_tabs_rule.py - Rule class to check the file does not use tabs for indentation.""" diff --git a/j2lint/rules/jinja_template_single_statement_rule.py b/j2lint/rules/jinja_template_single_statement_rule.py index 49d1adc..b04ef8d 100644 --- a/j2lint/rules/jinja_template_single_statement_rule.py +++ b/j2lint/rules/jinja_template_single_statement_rule.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """jinja_template_single_statement_rule.py - Rule class to check if only a single jinja statement is present on each line.""" diff --git a/j2lint/rules/jinja_template_syntax_error_rule.py b/j2lint/rules/jinja_template_syntax_error_rule.py index 5aa3924..c336c6f 100644 --- a/j2lint/rules/jinja_template_syntax_error_rule.py +++ b/j2lint/rules/jinja_template_syntax_error_rule.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """jinja_template_syntax_error_rule.py - Rule class to check that file does not have jinja syntax errors.""" diff --git a/j2lint/rules/jinja_variable_has_space_rule.py b/j2lint/rules/jinja_variable_has_space_rule.py index 25a4cdc..1dffc8d 100644 --- a/j2lint/rules/jinja_variable_has_space_rule.py +++ b/j2lint/rules/jinja_variable_has_space_rule.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """jinja_variable_has_space_rule.py - Rule class to check if jinja variables have single space between curly brackets and variable name.""" diff --git a/j2lint/rules/jinja_variable_name_case_rule.py b/j2lint/rules/jinja_variable_name_case_rule.py index 7ba464d..9b01f4a 100644 --- a/j2lint/rules/jinja_variable_name_case_rule.py +++ b/j2lint/rules/jinja_variable_name_case_rule.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """jinja_variable_name_case_rule.py - Rule class to check the variables use lower case.""" diff --git a/j2lint/rules/jinja_variable_name_format_rule.py b/j2lint/rules/jinja_variable_name_format_rule.py index 0113062..40bafe3 100644 --- a/j2lint/rules/jinja_variable_name_format_rule.py +++ b/j2lint/rules/jinja_variable_name_format_rule.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """jinja_variable_name_format_rule.py - Rule class to check that variable names only use underscores.""" diff --git a/j2lint/utils.py b/j2lint/utils.py index 9f5783b..8df37da 100644 --- a/j2lint/utils.py +++ b/j2lint/utils.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """utils.py - Utility functions for jinja2 linter.""" diff --git a/tests/__init__.py b/tests/__init__.py index b64099f..ab820b4 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """Tests for j2lint.""" diff --git a/tests/conftest.py b/tests/conftest.py index 18cbb1e..1a3b630 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """Pytest fixtures for j2lint testing.""" diff --git a/tests/data/test.j2 b/tests/data/test.j2 index 9fa6b17..eaf9f94 100644 --- a/tests/data/test.j2 +++ b/tests/data/test.j2 @@ -1,5 +1,5 @@ {# - Copyright (c) 2021-2024 Arista Networks, Inc. + Copyright (c) 2021-2025 Arista Networks, Inc. Use of this source code is governed by the MIT license that can be found in the LICENSE file. #} diff --git a/tests/test_cli.py b/tests/test_cli.py index 2cdabca..4b9154e 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """Tests for j2lint.cli.py.""" diff --git a/tests/test_linter/__init__.py b/tests/test_linter/__init__.py index cec695c..bb30a41 100644 --- a/tests/test_linter/__init__.py +++ b/tests/test_linter/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """Test for j2lint.linter.""" diff --git a/tests/test_linter/data/disable-rule-3.j2 b/tests/test_linter/data/disable-rule-3.j2 index 1a8784f..6b1f1eb 100644 --- a/tests/test_linter/data/disable-rule-3.j2 +++ b/tests/test_linter/data/disable-rule-3.j2 @@ -1,5 +1,5 @@ {# - Copyright (c) 2021-2024 Arista Networks, Inc. + Copyright (c) 2021-2025 Arista Networks, Inc. Use of this source code is governed by the MIT license that can be found in the LICENSE file. #} diff --git a/tests/test_linter/data/test.j2 b/tests/test_linter/data/test.j2 index 9fa6b17..eaf9f94 100644 --- a/tests/test_linter/data/test.j2 +++ b/tests/test_linter/data/test.j2 @@ -1,5 +1,5 @@ {# - Copyright (c) 2021-2024 Arista Networks, Inc. + Copyright (c) 2021-2025 Arista Networks, Inc. Use of this source code is governed by the MIT license that can be found in the LICENSE file. #} diff --git a/tests/test_linter/test_collection.py b/tests/test_linter/test_collection.py index bdd31d3..38ef9fe 100644 --- a/tests/test_linter/test_collection.py +++ b/tests/test_linter/test_collection.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """Tests for j2lint.linter.collection.py.""" diff --git a/tests/test_linter/test_error.py b/tests/test_linter/test_error.py index 4cdeb7f..9e21fda 100644 --- a/tests/test_linter/test_error.py +++ b/tests/test_linter/test_error.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """Tests for j2lint.linter.error.py.""" diff --git a/tests/test_linter/test_indenter/__init__.py b/tests/test_linter/test_indenter/__init__.py index 2f77c48..efacd54 100644 --- a/tests/test_linter/test_indenter/__init__.py +++ b/tests/test_linter/test_indenter/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """Tests for j2lint.linter.indenter.""" diff --git a/tests/test_linter/test_indenter/test_node.py b/tests/test_linter/test_indenter/test_node.py index faa8878..b6285d8 100644 --- a/tests/test_linter/test_indenter/test_node.py +++ b/tests/test_linter/test_indenter/test_node.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """Tests for j2lint.linter.node.py.""" diff --git a/tests/test_linter/test_indenter/test_statement.py b/tests/test_linter/test_indenter/test_statement.py index 052dde8..6aff6a1 100644 --- a/tests/test_linter/test_indenter/test_statement.py +++ b/tests/test_linter/test_indenter/test_statement.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """Tests for j2lint.linter.indenter.statement.py. diff --git a/tests/test_linter/test_rule.py b/tests/test_linter/test_rule.py index a4b5f1f..12816f8 100644 --- a/tests/test_linter/test_rule.py +++ b/tests/test_linter/test_rule.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """Tests for j2lint.linter.rule.py.""" diff --git a/tests/test_linter/test_runner.py b/tests/test_linter/test_runner.py index 8341274..73773b5 100644 --- a/tests/test_linter/test_runner.py +++ b/tests/test_linter/test_runner.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """Tests for j2lint.linter.runner.py.""" diff --git a/tests/test_logger.py b/tests/test_logger.py index 4b0ac54..ac7ef7b 100644 --- a/tests/test_logger.py +++ b/tests/test_logger.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """Tests for j2lint.logger.py.""" diff --git a/tests/test_rules/__init__.py b/tests/test_rules/__init__.py index 70a2818..9060631 100644 --- a/tests/test_rules/__init__.py +++ b/tests/test_rules/__init__.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """Tests for j2lint.rules.""" diff --git a/tests/test_rules/data/jinja_operator_has_spaces_rule.j2 b/tests/test_rules/data/jinja_operator_has_spaces_rule.j2 index 1b12a5b..e3a9930 100644 --- a/tests/test_rules/data/jinja_operator_has_spaces_rule.j2 +++ b/tests/test_rules/data/jinja_operator_has_spaces_rule.j2 @@ -1,5 +1,5 @@ {# - Copyright (c) 2021-2024 Arista Networks, Inc. + Copyright (c) 2021-2025 Arista Networks, Inc. Use of this source code is governed by the MIT license that can be found in the LICENSE file. #} diff --git a/tests/test_rules/data/jinja_statement_delimiter_rule.j2 b/tests/test_rules/data/jinja_statement_delimiter_rule.j2 index 12f2412..a2acb63 100644 --- a/tests/test_rules/data/jinja_statement_delimiter_rule.j2 +++ b/tests/test_rules/data/jinja_statement_delimiter_rule.j2 @@ -1,5 +1,5 @@ {# - Copyright (c) 2021-2024 Arista Networks, Inc. + Copyright (c) 2021-2025 Arista Networks, Inc. Use of this source code is governed by the MIT license that can be found in the LICENSE file. #} diff --git a/tests/test_rules/data/jinja_statement_has_spaces_rule.j2 b/tests/test_rules/data/jinja_statement_has_spaces_rule.j2 index d1cc3ae..3ea3bed 100644 --- a/tests/test_rules/data/jinja_statement_has_spaces_rule.j2 +++ b/tests/test_rules/data/jinja_statement_has_spaces_rule.j2 @@ -1,5 +1,5 @@ {# - Copyright (c) 2021-2024 Arista Networks, Inc. + Copyright (c) 2021-2025 Arista Networks, Inc. Use of this source code is governed by the MIT license that can be found in the LICENSE file. #} diff --git a/tests/test_rules/data/jinja_template_indentation_rule.IndexError.j2 b/tests/test_rules/data/jinja_template_indentation_rule.IndexError.j2 index d9bba9f..24f20ca 100644 --- a/tests/test_rules/data/jinja_template_indentation_rule.IndexError.j2 +++ b/tests/test_rules/data/jinja_template_indentation_rule.IndexError.j2 @@ -1,5 +1,5 @@ {# - Copyright (c) 2021-2024 Arista Networks, Inc. + Copyright (c) 2021-2025 Arista Networks, Inc. Use of this source code is governed by the MIT license that can be found in the LICENSE file. #} diff --git a/tests/test_rules/data/jinja_template_indentation_rule.JinjaLinterError.j2 b/tests/test_rules/data/jinja_template_indentation_rule.JinjaLinterError.j2 index 5223d65..16c8100 100644 --- a/tests/test_rules/data/jinja_template_indentation_rule.JinjaLinterError.j2 +++ b/tests/test_rules/data/jinja_template_indentation_rule.JinjaLinterError.j2 @@ -1,5 +1,5 @@ {# - Copyright (c) 2021-2024 Arista Networks, Inc. + Copyright (c) 2021-2025 Arista Networks, Inc. Use of this source code is governed by the MIT license that can be found in the LICENSE file. #} diff --git a/tests/test_rules/data/jinja_template_indentation_rule.j2 b/tests/test_rules/data/jinja_template_indentation_rule.j2 index 07b19c1..faed097 100644 --- a/tests/test_rules/data/jinja_template_indentation_rule.j2 +++ b/tests/test_rules/data/jinja_template_indentation_rule.j2 @@ -1,5 +1,5 @@ {# - Copyright (c) 2021-2024 Arista Networks, Inc. + Copyright (c) 2021-2025 Arista Networks, Inc. Use of this source code is governed by the MIT license that can be found in the LICENSE file. #} diff --git a/tests/test_rules/data/jinja_template_indentation_rule.missing_end_tag.j2 b/tests/test_rules/data/jinja_template_indentation_rule.missing_end_tag.j2 index 786923b..2b99d6d 100644 --- a/tests/test_rules/data/jinja_template_indentation_rule.missing_end_tag.j2 +++ b/tests/test_rules/data/jinja_template_indentation_rule.missing_end_tag.j2 @@ -1,5 +1,5 @@ {# - Copyright (c) 2021-2024 Arista Networks, Inc. + Copyright (c) 2021-2025 Arista Networks, Inc. Use of this source code is governed by the MIT license that can be found in the LICENSE file. #} diff --git a/tests/test_rules/data/jinja_template_no_tabs_rule.j2 b/tests/test_rules/data/jinja_template_no_tabs_rule.j2 index f752335..434a6d3 100644 --- a/tests/test_rules/data/jinja_template_no_tabs_rule.j2 +++ b/tests/test_rules/data/jinja_template_no_tabs_rule.j2 @@ -1,5 +1,5 @@ {# - Copyright (c) 2021-2024 Arista Networks, Inc. + Copyright (c) 2021-2025 Arista Networks, Inc. Use of this source code is governed by the MIT license that can be found in the LICENSE file. #} diff --git a/tests/test_rules/data/jinja_template_single_statement_rule.j2 b/tests/test_rules/data/jinja_template_single_statement_rule.j2 index 533f4ee..cba687e 100644 --- a/tests/test_rules/data/jinja_template_single_statement_rule.j2 +++ b/tests/test_rules/data/jinja_template_single_statement_rule.j2 @@ -1,5 +1,5 @@ {# - Copyright (c) 2021-2024 Arista Networks, Inc. + Copyright (c) 2021-2025 Arista Networks, Inc. Use of this source code is governed by the MIT license that can be found in the LICENSE file. #} diff --git a/tests/test_rules/data/jinja_template_syntax_error_rule.j2 b/tests/test_rules/data/jinja_template_syntax_error_rule.j2 index 1813222..483ca46 100644 --- a/tests/test_rules/data/jinja_template_syntax_error_rule.j2 +++ b/tests/test_rules/data/jinja_template_syntax_error_rule.j2 @@ -1,5 +1,5 @@ {# - Copyright (c) 2021-2024 Arista Networks, Inc. + Copyright (c) 2021-2025 Arista Networks, Inc. Use of this source code is governed by the MIT license that can be found in the LICENSE file. #} diff --git a/tests/test_rules/data/jinja_variable_has_space_rule.j2 b/tests/test_rules/data/jinja_variable_has_space_rule.j2 index 4b2de82..c9a9125 100644 --- a/tests/test_rules/data/jinja_variable_has_space_rule.j2 +++ b/tests/test_rules/data/jinja_variable_has_space_rule.j2 @@ -1,5 +1,5 @@ {# - Copyright (c) 2021-2024 Arista Networks, Inc. + Copyright (c) 2021-2025 Arista Networks, Inc. Use of this source code is governed by the MIT license that can be found in the LICENSE file. #} diff --git a/tests/test_rules/data/jinja_variable_name_case_rule.j2 b/tests/test_rules/data/jinja_variable_name_case_rule.j2 index d3d03fc..4b449ac 100644 --- a/tests/test_rules/data/jinja_variable_name_case_rule.j2 +++ b/tests/test_rules/data/jinja_variable_name_case_rule.j2 @@ -1,5 +1,5 @@ {# - Copyright (c) 2021-2024 Arista Networks, Inc. + Copyright (c) 2021-2025 Arista Networks, Inc. Use of this source code is governed by the MIT license that can be found in the LICENSE file. #} diff --git a/tests/test_rules/data/jinja_variable_name_format_rule.j2 b/tests/test_rules/data/jinja_variable_name_format_rule.j2 index c4d2d54..19d608c 100644 --- a/tests/test_rules/data/jinja_variable_name_format_rule.j2 +++ b/tests/test_rules/data/jinja_variable_name_format_rule.j2 @@ -1,5 +1,5 @@ {# - Copyright (c) 2021-2024 Arista Networks, Inc. + Copyright (c) 2021-2025 Arista Networks, Inc. Use of this source code is governed by the MIT license that can be found in the LICENSE file. #} diff --git a/tests/test_rules/test_rules.py b/tests/test_rules/test_rules.py index 2951a1b..e9bc3b3 100644 --- a/tests/test_rules/test_rules.py +++ b/tests/test_rules/test_rules.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """Tests for rules.""" diff --git a/tests/test_utils.py b/tests/test_utils.py index f28da08..622081a 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """Tests for j2lint.utils.py.""" diff --git a/tests/utils.py b/tests/utils.py index b47a2f3..8e4ecba 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021-2024 Arista Networks, Inc. +# Copyright (c) 2021-2025 Arista Networks, Inc. # Use of this source code is governed by the MIT license # that can be found in the LICENSE file. """utils.py - functions to assist with tests."""