chore: add dev tooling, CI workflow, and project configuration#40
Closed
tboy1337 wants to merge 12 commits into
Closed
chore: add dev tooling, CI workflow, and project configuration#40tboy1337 wants to merge 12 commits into
tboy1337 wants to merge 12 commits into
Conversation
Add project infrastructure for static analysis, testing, and CI: - pyproject.toml: project metadata, black and isort configuration - pytest.ini: test discovery, asyncio_mode=auto, 30 s timeout - .coveragerc: branch coverage, 90 % minimum, source = dns_utils - mypy.ini: strict type checking with per-module relaxations for existing untyped modules and test files - .pylintrc: pylint configuration, disable noisy rules, set good-names - requirements-dev.txt: pin all dev dependencies (pytest, hypothesis, mypy, pylint, black, isort, autopep8, coverage plugins) - requirements.txt: remove duplicate cryptography entry, reorder - .gitignore: add .hypothesis/ and .coverage to ignored paths - .github/workflows/test.yml: GitHub Actions CI running pytest with coverage on Python 3.10, uploads coverage.xml as artifact - dns_utils/config_loader.py: add pragma: no cover on ImportError fallback branch and type: ignore annotations for tomllib re-import Made-with: Cursor
- .coveragerc: removed unused exclusion pattern. - .pylintrc: cleaned up disabled rules for better linting. - mypy.ini: simplified error handling for test files. - pyproject.toml: updated build backend and removed unnecessary dependencies. - requirements-dev.txt: pinned versions for development dependencies to ensure compatibility. - .github/workflows/test.yml: added formatting and type checking steps to CI workflow. - dns_utils/config_loader.py: updated function signature for load_config to use type hints.
- Removed version pinning for development dependencies to allow for more flexibility in updates.
Made-with: Cursor
- Removed black, isort, and mypy checks from the GitHub Actions CI configuration in .github/workflows/test.yml.
Made-with: Cursor
… add coverage Made-with: Cursor
… update tests Made-with: Cursor
…king32#41 tests branch) Made-with: Cursor
…ate type hint in load_config
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
equirements-dev.txt listing all development dependencies (pytest plugins, hypothesis, mypy, pylint, black, isort, autopep8)
Notes
The mypy.ini marks several large existing modules as ignore_errors = true to avoid noisy false-positives on inherited code that predates strict typing. Full annotation of those modules is tracked separately.
The companion source-code PRs (chore/modernize-type-hints, fix/arq-io-loop) should be reviewed alongside this one.