diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3e864bf527..e0a44baad6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -30,7 +30,7 @@ repos: hooks: - id: copyright-notice args: ["--notice=script/copyright.txt", "--enforce-all"] - exclude: tests(/\w*)*/functional/|tests/input|doc/data/messages|examples/|setup.py|tests(/\w*)*data/ + exclude: tests(/\w*)*/functional/|tests/input|doc/data/messages|examples/|tests(/\w*)*data/ types: [python] - repo: https://github.com/asottile/pyupgrade rev: v2.34.0 diff --git a/Dockerfile b/Dockerfile index 2667145da8..7bde0a2921 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,6 @@ FROM python:3.10.0-alpine3.15 COPY ./ /tmp/build WORKDIR /tmp/build -RUN python setup.py install && rm -rf /tmp/build +RUN python -m pip install . && rm -rf /tmp/build ENTRYPOINT ["pylint"]