Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
1a90b76
Remove old code
sheldygg Jun 28, 2025
4695655
Return ability to get translation by `_getattr__`.
sheldygg Jun 28, 2025
239e522
Update dependencies.
sheldygg Jun 28, 2025
44adae2
Update .gitignore.
sheldygg Jun 28, 2025
fa67856
Remove docs.
sheldygg Jun 28, 2025
6ebb360
Add tests and add CI for that.
sheldygg Jun 28, 2025
2c4b9ee
Fix CI.
sheldygg Jun 28, 2025
0f05ad5
Add pre-commit.
sheldygg Jun 28, 2025
b21781a
Remove useless abc.
sheldygg Jun 28, 2025
1ea9954
Add ability to update locales and add nats kv storage.
sheldygg Jun 28, 2025
f88b7e7
Update base and nats kv storages, update tests.
sheldygg Jun 29, 2025
91801a6
Add tests for transformers.
sheldygg Jun 29, 2025
f665fca
Add README.
sheldygg Jun 29, 2025
f059ee9
Add parser and stub generator with cli.
sheldygg Jun 29, 2025
7f0d980
Bump version and update description.
sheldygg Jun 29, 2025
452bc36
Workaround for conflicts in ftl files.
sheldygg Jun 29, 2025
a955d35
Fix tests.
sheldygg Jun 29, 2025
1b1954f
Update stub generator.
sheldygg Jun 30, 2025
85c3db1
Fix tests.
sheldygg Jun 30, 2025
19f105e
Rework generator and update tests.
sheldygg Jun 30, 2025
2ae54b8
Update pyptoject.toml
sheldygg Jun 30, 2025
17507af
Add CLI info to README.
sheldygg Jun 30, 2025
94ea830
Rework generator (again :D)
sheldygg Jul 1, 2025
af70dc6
placeholders as set
sheldygg Jul 1, 2025
ff5d784
No, better to check in value already in list.
sheldygg Jul 1, 2025
7073823
Fix tests.
sheldygg Jul 1, 2025
a91880a
Handle conflict when two translates has same prefix.
sheldygg Jul 1, 2025
40905ce
Add types for arguments.
sheldygg Jul 1, 2025
94e2c02
Handle in name is not valid python name
sheldygg Jul 1, 2025
f4ad505
Add `FileStorage`.
sheldygg Jul 1, 2025
6f4c2c1
Push missed locales.
sheldygg Jul 1, 2025
4877088
Backward compatibility for nats storage.
sheldygg Jul 2, 2025
a8a0394
Update README.
sheldygg Jul 2, 2025
cb4c9dc
Run tests on supported python versions.
sheldygg Jul 2, 2025
a91a1b6
Fix tests on python 3.9
sheldygg Jul 2, 2025
586e119
Add watchdog for cli and add backward compatibility.
sheldygg Jul 2, 2025
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
2 changes: 0 additions & 2 deletions .flake8

This file was deleted.

51 changes: 51 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: fluentogram-tests

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
pre-commit-check:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Set $PY environment variable
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ hashFiles('.pre-commit-config.yaml') }}
- uses: pre-commit/action@v3.0.1

test:
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]

runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install uv
uv pip install --system .[dev]

- name: Run tests
run: pytest tests
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,4 @@ dmypy.json
.pytype/
cython_debug/
.idea
.vscode
38 changes: 0 additions & 38 deletions .gitlab-ci.yml

This file was deleted.

28 changes: 28 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
default_stages: [pre-commit, pre-merge-commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: no-commit-to-branch
args: [ '--branch', 'master' ]
- id: end-of-file-fixer
files: ^fluentogram/
- id: trailing-whitespace
files: ^fluentogram/

- repo: local
hooks:
- id: lint
name: Linter
entry: "scripts/lint-pre-commit.sh"
language: python
types: [python]
require_serial: true
verbose: true

- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline']
stages: [pre-commit, pre-merge-commit, manual]
127 changes: 127 additions & 0 deletions .secrets.baseline
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
{
"version": "1.5.0",
"plugins_used": [
{
"name": "ArtifactoryDetector"
},
{
"name": "AWSKeyDetector"
},
{
"name": "AzureStorageKeyDetector"
},
{
"name": "Base64HighEntropyString",
"limit": 4.5
},
{
"name": "BasicAuthDetector"
},
{
"name": "CloudantDetector"
},
{
"name": "DiscordBotTokenDetector"
},
{
"name": "GitHubTokenDetector"
},
{
"name": "GitLabTokenDetector"
},
{
"name": "HexHighEntropyString",
"limit": 3.0
},
{
"name": "IbmCloudIamDetector"
},
{
"name": "IbmCosHmacDetector"
},
{
"name": "IPPublicDetector"
},
{
"name": "JwtTokenDetector"
},
{
"name": "KeywordDetector",
"keyword_exclude": ""
},
{
"name": "MailchimpDetector"
},
{
"name": "NpmDetector"
},
{
"name": "OpenAIDetector"
},
{
"name": "PrivateKeyDetector"
},
{
"name": "PypiTokenDetector"
},
{
"name": "SendGridDetector"
},
{
"name": "SlackDetector"
},
{
"name": "SoftlayerDetector"
},
{
"name": "SquareOAuthDetector"
},
{
"name": "StripeDetector"
},
{
"name": "TelegramBotTokenDetector"
},
{
"name": "TwilioKeyDetector"
}
],
"filters_used": [
{
"path": "detect_secrets.filters.allowlist.is_line_allowlisted"
},
{
"path": "detect_secrets.filters.common.is_ignored_due_to_verification_policies",
"min_level": 2
},
{
"path": "detect_secrets.filters.heuristic.is_indirect_reference"
},
{
"path": "detect_secrets.filters.heuristic.is_likely_id_string"
},
{
"path": "detect_secrets.filters.heuristic.is_lock_file"
},
{
"path": "detect_secrets.filters.heuristic.is_not_alphanumeric_string"
},
{
"path": "detect_secrets.filters.heuristic.is_potential_uuid"
},
{
"path": "detect_secrets.filters.heuristic.is_prefixed_with_dollar_sign"
},
{
"path": "detect_secrets.filters.heuristic.is_sequential_string"
},
{
"path": "detect_secrets.filters.heuristic.is_swagger_file"
},
{
"path": "detect_secrets.filters.heuristic.is_templated_secret"
}
],
"results": {},
"generated_at": "2025-06-28T20:21:22Z"
}
Loading