Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #32

Merged
merged 3 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repos:
- id: check-yaml
# ----- Python formatting -----
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.3
rev: v0.4.4
hooks:
# Run ruff linter.
- id: ruff
Expand All @@ -24,10 +24,10 @@ repos:
- id: pretty-format-yaml
args: [--autofix, --indent, '2']
- repo: https://github.com/tox-dev/pyproject-fmt
rev: 1.8.0
rev: 2.1.3
hooks:
- id: pyproject-fmt
- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.16
rev: v0.18
hooks:
- id: validate-pyproject
38 changes: 19 additions & 19 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=64",
"setuptools-scm[toml]>=6.2",
]

[project]
name = "pydeps2env"
description = "A python helper to generate conda environment files from project dependencies."
readme = {file = "README.md", content-type="text/markdown"}
readme = { file = "README.md", content-type = "text/markdown" }
keywords = [
"conda",
"pyproject",
]
license = {file = "LICENSE", name="BSD License"}
license = { file = "LICENSE", name = "BSD License" }
authors = [
{name="Çağtay Fabry", email="[email protected]"},
{ name = "Çağtay Fabry", email = "[email protected]" },
]
requires-python = ">=3.9"
classifiers = [
Expand All @@ -31,29 +38,22 @@ dynamic = [
dependencies = [
"packaging",
"pyyaml",
'tomli; python_version < "3.11"',
"tomli; python_version<'3.11'",
]
[project.optional-dependencies]
test = [
optional-dependencies.test = [
# needed to run the test suite
"pytest",
"pytest-cov",
]
[project.urls]
bug_tracker = "https://github.com/CagtayFabry/pydeps2env/-/issues"
repository = "https://github.com/CagtayFabry/pydeps2env"
[project.scripts]
pydeps2env = "pydeps2env.generate_environment:main"

[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=64",
"setuptools_scm[toml]>=6.2",
]
urls.bug_tracker = "https://github.com/CagtayFabry/pydeps2env/-/issues"
urls.repository = "https://github.com/CagtayFabry/pydeps2env"
scripts.pydeps2env = "pydeps2env.generate_environment:main"

[tool.setuptools.packages]
find = {exclude = ["test", "resources"]}
find = { exclude = [
"test",
"resources",
] }

[tool.setuptools_scm]
write_to = "pydeps2env/_version.py"
32 changes: 15 additions & 17 deletions test/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=40.9",
"setuptools-scm",
"wheel",
]

[project]
name = "test"
requires-python = ">=3.8,<3.10"
Expand All @@ -8,29 +16,19 @@ classifiers = [
]
dependencies = [
"boltons",
"IPython",
"ipython",
"numpy>=1.20",
"pandas>=1",
]
[project.optional-dependencies]
doc = [
optional-dependencies.doc = [
"sphinx",
]
pip_only = [
optional-dependencies.pip_only = [
"bidict",
]
test = [
optional-dependencies.test = [
"pytest",
]
[project.urls]
author = "Cagtay Fabry <[email protected]>"
author_email = "[email protected]"
home_page = "https://github.com/CagtayFabry/pydeps2env"

[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=40.9",
"setuptools_scm",
"wheel",
]
urls.author = "Cagtay Fabry <[email protected]>"
urls.author_email = "[email protected]"
urls.home_page = "https://github.com/CagtayFabry/pydeps2env"