Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
1e46458
removed previous tests
DaanaH-dev Nov 12, 2026
9cbf6dd
Delete .devcontainer directory
DaanaH-dev Nov 12, 2026
e87d906
Made a initial test file for the card validator, also added markdown
DaanaH-dev Nov 14, 2026
af44737
Update card_test.py
DaanaH-dev Nov 14, 2026
ff87445
Updated card test and added country test
DaanaH-dev Nov 19, 2026
324f019
Making the test files for the other tests
DaanaH-dev Nov 19, 2026
8032ad0
Added temp tests for domain and emails
DaanaH-dev Nov 19, 2026
7586acd
added base files for all other tests and did some work on domain
DaanaH-dev Nov 27, 2026
0d61eb3
did some progress on email test
DaanaH-dev Nov 28, 2026
4be3c90
finished length, domain and email
DaanaH-dev Nov 28, 2026
aa07c73
Updated formatting for mac_address, ip_address, and url_test
CoalStones Nov 28, 2026
dc83389
Merge branch 'Daana' of https://github.com/DaanaH-dev/validators-CIS4…
CoalStones Nov 28, 2026
6a2f96d
Updated failing URL tests
CoalStones Nov 28, 2026
ac9a0b6
Merge pull request #1 from DaanaH-dev/Daana
DaanaH-dev Nov 29, 2026
184db72
Added domain cache test and removed TODOs
dsukhman Nov 29, 2026
dcde0d8
Added docstrings to the files who missed them
dsukhman Nov 29, 2026
e25ef20
Added mutation testing tests, setup.cfg, and run instructions
dsukhman Nov 29, 2026
06d7d4e
Cleaned up comments
dsukhman Nov 29, 2026
0ff87bb
Fixing tooling errors
CoalStones Nov 30, 2026
a151af6
adding coverage statistics
CoalStones Nov 30, 2026
05bbeb5
claude assisted update to coverage file
CoalStones Nov 30, 2026
8a30ea7
Broke something in card.py but now it's fixed
CoalStones Dec 1, 2026
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/python
{
"name": "Python 3",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/python:3-3.11-bookworm"

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "pip3 install --user -r requirements.txt",

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
21 changes: 21 additions & 0 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Coverage

on:
push:
pull_request:
workflow_dispatch:

jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install
run: pip install -e . pytest coverage
- name: Coverage
run: |
coverage run --branch --source=validators.card,validators.country,validators.domain,validators.email,validators.ip_address,validators.length,validators.mac_address,validators.url -m pytest tests/
coverage report -m --format=markdown >> "$GITHUB_STEP_SUMMARY"
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ coverage.xml
*.py,cover
.hypothesis/
.pytest_cache/
.mutmut-cache
cover/

# Translations
Expand Down Expand Up @@ -179,3 +180,5 @@ mise.toml

# taplo
.taplo.toml

./.devcontainer/*
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -188,3 +188,4 @@ description = "unit tests"
dependency_groups = ["testing"]
extras = ["crypto-eth-addresses"]
commands = [["pytest", "."]]

4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[mutmut]
paths_to_mutate=src/validators/card.py,src/validators/country.py,src/validators/domain.py,src/validators/email.py,src/validators/ip_address.py,src/validators/length.py,src/validators/mac_address.py,src/validators/url.py
runner=python -m pytest -x -q tests/
tests_dir=tests/
Loading