diff --git a/k8s_handle/templating.py b/k8s_handle/templating.py
index 7f2d6b7..445a09e 100644
--- a/k8s_handle/templating.py
+++ b/k8s_handle/templating.py
@@ -195,7 +195,10 @@ class Renderer:
 
     @staticmethod
     def _evaluate_tags(tags, only_tags, skip_tags):
-        if only_tags is None and skip_tags is None:
-            return True
+        if only_tags and tags.isdisjoint(only_tags):
+            return False
 
-        return tags.isdisjoint(skip_tags or []) and not tags.isdisjoint(only_tags or tags)
+        if skip_tags and not tags.isdisjoint(skip_tags):
+            return False
+
+        return True

skip-tags does not work
Hello,
it seems `--skip-tags` does not work. Steps to reproduce:
```
git clone git@github.com:2gis/k8s-handle-example.git
```
Edit config.yaml, add some tag
```
staging:
  templates:
  - template: configmap.yaml.j2
  - template: deployment.yaml.j2
  - template: service.yaml.j2
    tags: manual
```
Render is empty:
```
$ docker run --rm -v `pwd`:/tmp -w /tmp 2gis/k8s-handle k8s-handle render -s staging --skip-tags manual

                         _(_)_                          wWWWw   _
             @@@@       (_)@(_)   vVVVv     _     @@@@  (___) _(_)_
            @@()@@ wWWWw  (_)\    (___)   _(_)_  @@()@@   Y  (_)@(_)
             @@@@  (___)     `|/    Y    (_)@(_)  @@@@   \|/   (_)
              /      Y       \|    \|/    /(_)    \|      |/      |
           \ |     \ |/       | / \ | /  \|/       |/    \|      \|/
            \|//    \|///    \|//  \|/// \|///    \|//    |//    \|//
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
```
diff --git a/tests/test_templating.py b/tests/test_templating.py
index cd1ecfe..6a46a01 100644
--- a/tests/test_templating.py
+++ b/tests/test_templating.py
@@ -111,6 +111,9 @@ class TestTemplating(unittest.TestCase):
         self.assertFalse(r._evaluate_tags(tags, only_tags=['tag1'], skip_tags=['tag1']))
         self.assertFalse(r._evaluate_tags(tags, only_tags=None, skip_tags=['tag1']))
         self.assertTrue(r._evaluate_tags(tags, only_tags=None, skip_tags=['tag4']))
+        tags = set()
+        self.assertFalse(r._evaluate_tags(tags, only_tags=['tag4'], skip_tags=None))
+        self.assertTrue(r._evaluate_tags(tags, only_tags=None, skip_tags=['tag4']))
 
     def test_get_template_tags(self):
         r = templating.Renderer(os.path.join(os.path.dirname(__file__), 'templates_tests'))

pip install -e .
parse_log_pytest
requirements.txt
pytest pytest-cov pytest-xdist pytest-mock pytest-asyncio
3.6
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs==22.2.0
cachetools==4.2.4
certifi==2021.5.30
chardet==3.0.4
coverage==6.2
execnet==1.9.0
google-auth==2.22.0
idna==2.8
importlib-metadata==4.8.3
iniconfig==1.1.1
Jinja2==2.10.1
-e git+https://github.com/2gis/k8s-handle.git@0ce48ecc5cd78eac5894241468a53080c3ccec64#egg=k8s_handle
kubernetes==10.0.1
MarkupSafe==2.0.1
oauthlib==3.2.2
packaging==21.3
pluggy==1.0.0
py==1.11.0
pyasn1==0.5.1
pyasn1-modules==0.3.0
pyparsing==3.1.4
pytest==7.0.1
pytest-asyncio==0.16.0
pytest-cov==4.0.0
pytest-mock==3.6.1
pytest-xdist==3.0.2
python-dateutil==2.9.0.post0
PyYAML==5.1
requests==2.22.0
requests-oauthlib==2.0.0
rsa==4.9
semver==2.8.1
six==1.17.0
tomli==1.2.3
typing_extensions==4.1.1
urllib3==1.25.11
websocket-client==1.3.1
zipp==3.6.0

name: k8s-handle
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=21.2.2=py36h06a4308_0
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - attrs==22.2.0
      - cachetools==4.2.4
      - chardet==3.0.4
      - coverage==6.2
      - execnet==1.9.0
      - google-auth==2.22.0
      - idna==2.8
      - importlib-metadata==4.8.3
      - iniconfig==1.1.1
      - jinja2==2.10.1
      - kubernetes==10.0.1
      - markupsafe==2.0.1
      - oauthlib==3.2.2
      - packaging==21.3
      - pluggy==1.0.0
      - py==1.11.0
      - pyasn1==0.5.1
      - pyasn1-modules==0.3.0
      - pyparsing==3.1.4
      - pytest==7.0.1
      - pytest-asyncio==0.16.0
      - pytest-cov==4.0.0
      - pytest-mock==3.6.1
      - pytest-xdist==3.0.2
      - python-dateutil==2.9.0.post0
      - pyyaml==5.1
      - requests==2.22.0
      - requests-oauthlib==2.0.0
      - rsa==4.9
      - semver==2.8.1
      - six==1.17.0
      - tomli==1.2.3
      - typing-extensions==4.1.1
      - urllib3==1.25.11
      - websocket-client==1.3.1
      - zipp==3.6.0
prefix: /opt/conda/envs/k8s-handle

tests/test_templating.py::TestTemplating::test_evaluate_tags
tests/test_templating.py::TestTemplating::test_filters tests/test_templating.py::TestTemplating::test_generate_group_templates tests/test_templating.py::TestTemplating::test_generate_templates tests/test_templating.py::TestTemplating::test_generate_templates_with_kubectl_section tests/test_templating.py::TestTemplating::test_get_template_tags tests/test_templating.py::TestTemplating::test_get_template_tags_unexpected_type tests/test_templating.py::TestTemplating::test_io_2709 tests/test_templating.py::TestTemplating::test_no_templates_in_kubectl tests/test_templating.py::TestTemplating::test_none_context tests/test_templating.py::TestTemplating::test_render_not_existent_template tests/test_templating.py::TestTemplating::test_renderer_init tests/test_templating.py::TestTemplating::test_templates_regex tests/test_templating.py::TestTemplating::test_templates_regex_parse_failed
k8s_handle/templating.py
k8s_handle/templating.py