Skip to content
Open
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
12 changes: 7 additions & 5 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ jobs:
matrix:
os: [ubuntu-latest] # [ubuntu-latest, windows-latest, macos-latest]
python-version: [
"3.8",
"3.9",
"3.10",
"3.11",
"3.12",
# "3.8", # 2019-10 -> 2024-10
# "3.9", # 2020-10 -> 2025-10
# "3.10", # 2021-10 -> 2026-10
# "3.11", # 2022-10 -> 2027-10 tomllib
# "3.12", # 2023-10 -> 2028-10
"3.13", # 2024-10 -> 2029-10
# "3.14", # 2025-10 -> 2030-10
]

steps:
Expand Down
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ celerybeat.pid
*.sage.py

# Environments
.*.env
.env.*
.env
.venv
env/
Expand All @@ -128,5 +130,9 @@ dmypy.json
# Pyre type checker
.pyre/

# macos
## CUSTOM ##

.DS_Store
.idea/
CLAUDE.local.md
.claude/settings.local.json
40 changes: 21 additions & 19 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,36 +1,38 @@
fail_fast: false

repos:
# - repo: https://github.com/astral-sh/uv-pre-commit
# rev: 0.8.19
# hooks:
# - id: uv-lock

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v6.0.0
hooks:
- id: check-added-large-files
args: ["--maxkb=500"]
- id: check-case-conflict
- id: detect-private-key
- id: check-merge-conflict

- repo: https://github.com/asottile/pyupgrade
rev: v3.15.2
rev: v3.20.0
hooks:
- id: pyupgrade
args:
- "--py38-plus"

- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
name: isort
args: ["--verbose", "--py=39", "--profile=black"]
- "--py313-plus"

- repo: https://github.com/psf/black
rev: 24.4.0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.13.2
hooks:
- id: black
args: ["--verbose", "--target-version=py39"]
- id: ruff-check
args: [ --fix ]
exclude: ^tests/test-packages/
- id: ruff-format

# this repo
- repo: https://github.com/nmichlo/pydependence
rev: v0.5.0
hooks:
- id: pydependence
args: ["pyproject.toml"]
# - repo: https://github.com/nmichlo/pydependence
# rev: v0.5.0
# hooks:
# - id: pydependence
# args: ["pyproject.toml"]
2 changes: 1 addition & 1 deletion .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
always_run: true
verbose: true
entry: python3 -m pydependence
language_version: "3.9"
language_version: "3.13"
additional_dependencies:
- 'pydantic==2.*'
- 'packaging'
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Nathan Juraj Michlo
Copyright (c) 2024 Nathan Juraj Michlo

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,23 @@ python -m pydependence --help
python -m pydependence <path_to_config.toml>
```

### Local Development

Easiest way is to use `uv`

```bash
pip install uv

# clone repo
git clone https://github.com/nmichlo/pydependence
cd ./pydependence

# setup pre-commit
uvx --with .[dev] pre-commit install
# run tests
uvx --with .[dev,test] pytest
```

----------------------

## Help
Expand Down
25 changes: 2 additions & 23 deletions pydependence/__init__.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,2 @@
# ============================================================================== #
# MIT License #
# #
# Copyright (c) 2024 Nathan Juraj Michlo #
# #
# Permission is hereby granted, free of charge, to any person obtaining a copy #
# of this software and associated documentation files (the "Software"), to deal #
# in the Software without restriction, including without limitation the rights #
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell #
# copies of the Software, and to permit persons to whom the Software is #
# furnished to do so, subject to the following conditions: #
# #
# The above copyright notice and this permission notice shall be included in all #
# copies or substantial portions of the Software. #
# #
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE #
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, #
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE #
# SOFTWARE. #
# ============================================================================== #
# SPDX-License-Identifier: MIT
# Copyright (c) 2024 Nathan Juraj Michlo
26 changes: 2 additions & 24 deletions pydependence/__main__.py
Original file line number Diff line number Diff line change
@@ -1,27 +1,5 @@
# ============================================================================== #
# MIT License #
# #
# Copyright (c) 2024 Nathan Juraj Michlo #
# #
# Permission is hereby granted, free of charge, to any person obtaining a copy #
# of this software and associated documentation files (the "Software"), to deal #
# in the Software without restriction, including without limitation the rights #
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell #
# copies of the Software, and to permit persons to whom the Software is #
# furnished to do so, subject to the following conditions: #
# #
# The above copyright notice and this permission notice shall be included in all #
# copies or substantial portions of the Software. #
# #
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR #
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, #
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE #
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER #
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, #
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE #
# SOFTWARE. #
# ============================================================================== #

# SPDX-License-Identifier: MIT
# Copyright (c) 2024 Nathan Juraj Michlo

import argparse
import logging
Expand Down
Loading