Skip to content

Commit e4151d5

Browse files
fix: resolve pre-commit tool conflicts and linting
issues
1 parent 7708685 commit e4151d5

File tree

4 files changed

+8
-25
lines changed

4 files changed

+8
-25
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,6 @@ repos:
77
args: [--fix] # Use full ruff configuration, same as CI
88
- id: ruff-format
99

10-
# Black - Python code formatter
11-
- repo: https://github.com/psf/black
12-
rev: 24.10.0
13-
hooks:
14-
- id: black
15-
language_version: python3.10
16-
args: [--line-length=120]
17-
18-
# isort - Python import sorting
19-
- repo: https://github.com/pycqa/isort
20-
rev: 5.13.2
21-
hooks:
22-
- id: isort
23-
args: [--profile=black, --line-length=120]
24-
2510
# General file checks
2611
- repo: https://github.com/pre-commit/pre-commit-hooks
2712
rev: v5.0.0

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
2020
Database anonymization for Django using [PostgreSQL Anonymizer](https://postgresql-anonymizer.readthedocs.io/).
2121

22-
**🔒 Secure • 🚀 Fast • 🎯 Precise • 📊 Production-Ready (coming-soon)**
22+
## 🔒 Secure • 🚀 Fast • 🎯 Precise • 📊 Production-Ready (coming-soon)
2323

2424
A comprehensive Django integration for PostgreSQL Anonymizer that provides database anonymization with advanced role management, context-aware data masking, and production-ready security features.
2525

@@ -30,11 +30,8 @@ A comprehensive Django integration for PostgreSQL Anonymizer that provides datab
3030
- [🎯 Use Cases](#-use-cases)
3131
- [⚡ Quick Start](#-quick-start)
3232
- [📖 Usage Examples](#-usage-examples)
33-
- [🔧 Configuration](#-configuration)
3433
- [📚 API Reference](#-api-reference)
35-
- [🎭 Advanced Features](#-advanced-features)
3634
- [🛠️ Development](#️-development)
37-
- [🧪 Testing](#-testing)
3835
- [🤝 Contributing](#-contributing)
3936
- [📄 License](#-license)
4037
- [🙏 Acknowledgments](#-acknowledgments)
@@ -586,15 +583,17 @@ python manage.py runserver
586583
# Access the demo at http://localhost:8000
587584
```
588585

589-
#### Demo Features:
586+
#### Demo Features
587+
590588
- 📊 **Interactive Dashboard** - Visual demonstrations of all anonymization methods
591589
- 🔄 **Context Manager Examples** - Live examples with syntax-highlighted code
592590
- 📝 **Copy-Ready Code Snippets** - Click-to-copy code blocks for quick integration
593591
- 🎭 **Real vs Anonymized Comparison** - Side-by-side data comparison views
594592
- 🛡️ **Role-Based Access Demo** - Automatic anonymization based on user groups
595593
- 🧪 **Function Validator** - Test anonymization functions with live feedback
596594

597-
#### Demo Users:
595+
#### Demo Users
596+
598597
- **admin/admin** - Superuser with full access to all data
599598
- **testuser/testpassword** - Regular user in `view_masked_data` group (sees anonymized data)
600599

example_project/templates/sample_app/context_manager_demo.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,4 +208,4 @@ <h5 class="mb-0">
208208
});
209209
}
210210
</script>
211-
{% endblock %}
211+
{% endblock %}

tests/test_commands.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
from pathlib import Path
66
from unittest.mock import patch
77

8-
from django.core.management import call_command
9-
from django.core.management.base import CommandError
10-
118
import pytest
129
import yaml
10+
from django.core.management import call_command
11+
from django.core.management.base import CommandError
1312
from model_bakery import baker
1413

1514
from django_postgres_anon.models import MaskedRole, MaskingLog, MaskingPreset, MaskingRule

0 commit comments

Comments
 (0)