Skip to content

Commit 46abdd8

Browse files
committed
🔨 Improve and extend pre-commit
1 parent 54b889a commit 46abdd8

23 files changed

+4
-22
lines changed

.pre-commit-config.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ repos:
2525
- id: check-case-conflict
2626
- id: check-executables-have-shebangs
2727
- id: fix-encoding-pragma
28+
args: ["--remove"]
29+
- id: check-ast
30+
- id: detect-private-key
31+
- id: forbid-new-submodules
2832
- repo: https://github.com/pre-commit/pre-commit
2933
rev: v1.21.0
3034
hooks:

adguardhome/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""Asynchronous Python client for the AdGuard Home API."""
32

43
from .adguardhome import ( # noqa

adguardhome/__version__.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""Asynchronous Python client for the AdGuard Home API."""
32

43
__version__ = "0.3.0"

adguardhome/adguardhome.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""Asynchronous Python client for the AdGuard Home API."""
32
import asyncio
43
import json

adguardhome/exceptions.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""Exceptions for AdGuard Home."""
32

43

adguardhome/filtering.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""Asynchronous Python client for the AdGuard Home API."""
32

43
from typing import Optional

adguardhome/parental.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""Asynchronous Python client for the AdGuard Home API."""
32

43
from .exceptions import AdGuardHomeError

adguardhome/querylog.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""Asynchronous Python client for the AdGuard Home API."""
32

43
from typing import Optional

adguardhome/safebrowsing.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""Asynchronous Python client for the AdGuard Home API."""
32

43
from .exceptions import AdGuardHomeError

adguardhome/safesearch.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""Asynchronous Python client for the AdGuard Home API."""
32

43
from .exceptions import AdGuardHomeError

adguardhome/stats.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""Asynchronous Python client for the AdGuard Home API."""
32

43
from .exceptions import AdGuardHomeError

examples/control.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# pylint: disable=W0621
32
"""Asynchronous Python client for the AdGuard Home API."""
43

examples/stats.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# pylint: disable=W0621
32
"""Asynchronous Python client for the AdGuard Home API."""
43

examples/status.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# pylint: disable=W0621
32
"""Asynchronous Python client for the AdGuard Home API."""
43

setup.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
32
"""The setup script."""
43
import io
54
import os

tests/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
# -*- coding: utf-8 -*-
21
"""Asynchronous Python client for the AdGuard Home API."""

tests/test_adguardhome.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""Tests for `adguardhome.adguardhome`."""
32
import asyncio
43

tests/test_filtering.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""Tests for `adguardhome.filtering`."""
32
import aiohttp
43
import pytest

tests/test_parental.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""Tests for `adguardhome.parental`."""
32
import aiohttp
43
import pytest

tests/test_querylog.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""Tests for `adguardhome.querylog`."""
32
import aiohttp
43
import pytest

tests/test_safebrowsing.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""Tests for `adguardhome.safebrowsing`."""
32
import aiohttp
43
import pytest

tests/test_safesearch.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""Tests for `adguardhome.safesearch`."""
32
import aiohttp
43
import pytest

tests/test_stats.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""Tests for `adguardhome.stats`."""
32
import aiohttp
43
import pytest

0 commit comments

Comments
 (0)