Skip to content
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
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master

env:
python-version: 3.10.6
python-version: 3.13.5

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
Expand All @@ -33,7 +33,7 @@ jobs:
echo -e "username = __token__" >> ~/.pypirc
echo -e "password = ${{ secrets.PYPI_TOKEN }}" >> ~/.pypirc

- name: Install CircleCI-specific dependencies
- name: Install system dependencies
run: |
sudo apt update
Comment thread
prousso marked this conversation as resolved.
sudo apt install -y libenchant-2-2
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/validate_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:

env:
python-version: 3.10.6
python-version: 3.13.5

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
Expand Down Expand Up @@ -37,7 +37,7 @@ jobs:
with:
python-version: ${{ env.python-version }}

- name: Install CircleCI-specific dependencies
- name: Install system dependencies
run: |
sudo apt update
sudo apt install -y libenchant-2-2 graphviz
Expand All @@ -46,9 +46,7 @@ jobs:
run: make init

- name: Run the unit tests
run: |
source venv/bin/activate
make test
run: make test

- name: Lint
run: make lint
Expand Down
8 changes: 7 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
---
default_language_version:
python: python3.13

default_stages: [pre-commit]


repos:
# Apply a selection of the pre-commit built-in validators
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.0.0
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python 3.9.16 3.10.9 3.11.1
python 3.10.19 3.11.1 3.12.3 3.13.5
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
.PHONY: clean clean-test clean-pyc clean-build doc help
.DEFAULT_GOAL := help
SHELL=/bin/bash
PYTHON_EXEC:=python3.10
PYTHON_EXEC:=python3.13

export PATH := ./venv/bin:$(PATH)
export PYTHONPATH=.

include dev.mk
include help.mk
Expand Down
6 changes: 6 additions & 0 deletions dev-requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ pre-commit
twine
wheel
types-PyYAML

# conditional-dependency needed by python<=3.11
backports-tarfile
exceptiongroup
importlib-metadata
tomli;
1,249 changes: 722 additions & 527 deletions dev-requirements.txt

Large diffs are not rendered by default.

29 changes: 11 additions & 18 deletions dev.mk
Original file line number Diff line number Diff line change
@@ -1,38 +1,31 @@
PYTHON?=venv/bin/python3
PIP_COMPILE?=$(PYTHON) -m uv pip compile --quiet --generate-hashes --strip-extras --python-platform=linux
PIP_SYNC?=$(PYTHON) -m uv pip sync

# Initialize the development environment, e.g. the Python dependencies
init: venv dev-requirements.txt
source venv/bin/activate && \
pip-sync \
--quiet \
$(PIP_SYNC) \
dev-requirements.txt
source venv/bin/activate && \
pre-commit install

# Make sure the virtualenv exists
venv:
$(PYTHON_EXEC) -m venv venv
source venv/bin/activate && \
pip install --quiet --upgrade pip
source venv/bin/activate && \
pip install --quiet pip-tools
pip install --quiet --upgrade pip uv

update_requirements:
# Remove the virtualenv and the requirements lock files
rm -rf venv requirements.txt dev-requirements.txt
# Recrete the virtualenv
$(MAKE) venv
# Generate the lock file for production requirements
source venv/bin/activate && \
pip-compile \
--quiet \
--generate-hashes \
--output-file requirements.txt
$(PIP_COMPILE) \
--output-file requirements.txt \
pyproject.toml
# Generate the lock file for development requirements
source venv/bin/activate && \
pip-compile \
--quiet \
--generate-hashes \
$(PIP_COMPILE) \
--output-file dev-requirements.txt \
setup.py \
pyproject.toml \
dev-requirements.in
# Install all the requirements in the virtualenv
$(MAKE) init
60 changes: 60 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "dep_check"
dynamic = ["version"]
description = "Python Dependency Check Tool"
readme = "README.md"
requires-python = ">=3.9"
license = {text = "MIT License"}
authors = [
{name = "LumApps", email = "core-devs@lumapps.com"}
]
keywords = ["python", "Dependency", "linter", "architecture", "quality", "dep-check", "dep_check"]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dependencies = [
"Click",
"PyYAML",
"Jinja2",
"ordered-set",
]

[project.urls]
Homepage = "https://github.com/lumapps/dep-check"
Download = "https://github.com/lumapps/dep-check/tarball/master"

[project.scripts]
dep_check = "dep_check.main:main"

[tool.setuptools]
zip-safe = false
include-package-data = true

[tool.setuptools.packages.find]
exclude = ["doc", "tests", "tests.*"]

[tool.setuptools.dynamic]
version = {attr = "dep_check.__version__"}

[tool.isort]
# Apply the isort configuration proposed by black
force_grid_wrap = 0
include_trailing_comma = true
line_length = 88
multi_line_output = 3
use_parentheses = true

[tool.mypy]
[[tool.mypy.overrides]]
module = "dep_check.infra.lib"
ignore_missing_imports = true
Loading