-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add basic code * add extras parsing * add pyproject.toml and scripts * update github action * refactor script location * update action * update action * add shell to setup * allow version not provided * add setup.cfg parsing * install packaging in action * add packaging dependency * update and fmt * annotations * update cmd options * update cmd script * use setup-python action * update * update README.md
- Loading branch information
1 parent
d160bcb
commit 1fcffc2
Showing
10 changed files
with
395 additions
and
169 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,33 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.1.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
args: [--markdown-linebreak-ext=md] | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- repo: https://github.com/psf/black | ||
rev: 22.1.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.10.1 | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 4.0.1 | ||
hooks: | ||
- id: flake8 | ||
args: [--max-line-length=88] | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.1.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
args: [--markdown-linebreak-ext=md] | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
# ----- Python formatting ----- | ||
- repo: https://github.com/charliermarsh/ruff-pre-commit | ||
rev: v0.1.13 | ||
hooks: | ||
# Run ruff linter. | ||
- id: ruff | ||
args: | ||
- --quiet | ||
- --fix | ||
# Run ruff formatter. | ||
- id: ruff-format | ||
# ----- repo maintenance ----- | ||
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks | ||
rev: v2.12.0 | ||
hooks: | ||
- id: pretty-format-yaml | ||
args: [--autofix, --indent, '2'] | ||
- repo: https://github.com/tox-dev/pyproject-fmt | ||
rev: 1.6.0 | ||
hooks: | ||
- id: pyproject-fmt | ||
- repo: https://github.com/abravalheri/validate-pyproject | ||
rev: v0.15 | ||
hooks: | ||
- id: validate-pyproject |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
"""pydeps2env: helps to generate conda environment files from python package dependencies.""" | ||
|
||
from .environment import Environment | ||
|
||
__all__ = ["Environment"] | ||
|
||
try: | ||
from ._version import __version__ | ||
except ModuleNotFoundError: | ||
__version__ = "" |
Oops, something went wrong.