-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
1,285 additions
and
1,288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ FROM python:3.10.7-alpine | |
LABEL maintainer="[email protected]" | ||
LABEL vendor="wemake.services" | ||
|
||
ENV DOTENV_LINTER_VERSION='0.4.0' | ||
ENV DOTENV_LINTER_VERSION='0.5.0' | ||
ENV REVIEWDOG_VERSION='v0.14.2' | ||
|
||
RUN apk add --no-cache bash git wget | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from typing_extensions import final | ||
from typing import final | ||
|
||
|
||
@final | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,13 @@ | ||
import sys | ||
import os | ||
from importlib import metadata | ||
|
||
# Note that we use ``sys.version_info`` directly, | ||
# because that's how ``mypy`` knows about what we are doing. | ||
if sys.version_info >= (3, 8): # pragma: no cover | ||
from importlib import metadata as importlib_metadata # noqa: WPS433 | ||
else: # pragma: no cover | ||
import importlib_metadata # noqa: WPS440, WPS433 | ||
|
||
|
||
def _get_version(distribution_name: str) -> str: # pragma: no cover | ||
"""Fetches distribution version.""" | ||
return importlib_metadata.version(distribution_name) # type: ignore | ||
|
||
|
||
pkg_name = 'dotenv-linter' | ||
#: Package name: | ||
pkg_name = os.path.basename(os.path.dirname(__file__)) | ||
|
||
#: We store the version number inside the `pyproject.toml`: | ||
pkg_version = _get_version(pkg_name) | ||
try: | ||
pkg_version = metadata.version(pkg_name) | ||
except metadata.PackageNotFoundError: | ||
# This mainly happens in RTD env, where we set the metadata | ||
# from `pyproject.toml` file: | ||
pkg_version = '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.