Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
znd4 committed Apr 16, 2023
2 parents be2a64d + c001c56 commit b9fb406
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.10", "3.11"]
python-version: [3.8, 3.9, "3.10", 3.11]
os: [ubuntu-latest, macOS-latest, windows-latest]

steps:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ jobs:
release-pypi:
name: release-pypi
runs-on: ubuntu-latest
environment: main

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: "3.10"
- name: Build artifacts
run: |
pip install build
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

os.environ.update(PDM_IGNORE_SAVED_PYTHON="1", PDM_USE_VENV="1")

PYTHON_VERSIONS = ("3.10", "3.11")
PYTHON_VERSIONS = ("3.8", "3.9", "3.10", "3.11")


@nox.session(python=PYTHON_VERSIONS)
Expand Down
40 changes: 20 additions & 20 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ description = "A pdm plugin that automatically loads .env files"
authors = [{ name = "Zane Dufour", email = "zane@znd4.me" }]
license = { text = "MIT" }
readme = "README.md"
requires-python = ">=3.10"
requires-python = ">=3.8"
dependencies = ["pdm>=2.5.2", "python-dotenv>=1.0.0"]
dynamic = ["version"]

classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3",
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3",
]

[project.entry-points.pdm]
Expand All @@ -33,21 +33,21 @@ package-dir = "src"
[tool.pdm.dev-dependencies]
test = ["pytest>=6.1", "pdm[pytest]>=2.5.2", "pytest-cov>=4.0.0"]
dev = [
"towncrier>=19.2",
"parver>=0.3",
"pre-commit>=3.2.2",
"nox>=2022.11.21",
"black>=23.3.0",
"pdm[pytest]>=2.5.2",
"towncrier>=19.2",
"parver>=0.3",
"pre-commit>=3.2.2",
"nox>=2022.11.21",
"black>=23.3.0",
"pdm[pytest]>=2.5.2",
]

doc = ["mkdocs>=1.1", "mkdocs-material>=6.2"]

[tool.pdm.scripts]
post_install = [
"python",
"-c",
"import shutil, subprocess as sp; sp.check_call(['pre-commit', 'install']) if shutil.which('pre-commit') else None",
"python",
"-c",
"import shutil, subprocess as sp; sp.check_call(['pre-commit', 'install']) if shutil.which('pre-commit') else None",
]
release = "python -m tasks.release"
test = "nox --no-venv -s test -- {args}"
Expand All @@ -62,14 +62,14 @@ target-version = ["py38", "py39", "py310", "py311"]
[tool.ruff]
line-length = 100
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"E", # pycodestyle
"F", # pyflakes
"PGH", # pygrep-hooks
"RUF", # ruff
"W", # pycodestyle
"YTT", # flake8-2020
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"E", # pycodestyle
"F", # pyflakes
"PGH", # pygrep-hooks
"RUF", # ruff
"W", # pycodestyle
"YTT", # flake8-2020
]
extend-ignore = ["B018", "B019"]
src = ["src"]
Expand Down

0 comments on commit b9fb406

Please sign in to comment.