Commit Graph

85 Commits

Author SHA1 Message Date
sebthom
83c0d6adf0 refact: move temp files to /.temp/ 2025-05-15 19:52:41 +02:00
sebthom
85a5cf5224 feat: improve content_hash calculation 2025-05-15 12:07:49 +02:00
sebthom
f1cd597dd8 fix: reduce distribution size 2025-05-15 12:07:49 +02:00
sebthom
6ede14596d feat: add type safe Ad model 2025-05-15 12:07:49 +02:00
sebthom
1369da1c34 feat: add type safe Config model 2025-05-15 12:07:49 +02:00
sebthom
f2e6f0b20b chore: update pyproject.toml 2025-05-12 14:08:50 +02:00
sebthom
314285583e ci: add pip-audit check 2025-05-11 20:14:38 +02:00
sebthom
3e8072973a build: use yamlfix for yaml formatting 2025-04-28 13:17:23 +02:00
sebthom
bda0acf943 refact: enable ruff preview rules 2025-04-28 13:17:23 +02:00
sebthom
ef923a8337 refact: apply consistent formatting 2025-04-28 12:55:28 +02:00
sebthom
fe33a0e461 refact: replace pyright with basedpyright 2025-04-28 12:52:18 +02:00
sebthom
376ec76226 refact: use ruff instead of autopep8,bandit,pylint for linting 2025-04-28 12:51:51 +02:00
sebthom
f0b84ab335 build: simplify pytest config 2025-04-28 12:43:53 +02:00
sebthom
27c7bb56ca fix: downgrading nodriver to 0.39 to address failing browser launch #470 2025-04-07 22:40:41 +02:00
Jens Bergmann
1b004a2a3e Revert "feat: Introduce isort and Python-based code quality tools (#446)"
This reverts commit cfe2b900c7.

The custom scripts introduced to auto-format imports (to enforce project guidelines) caused issues. Specifically, isort’s hardcoded behavior for expanded standard library imports with “as” imports led to unintended formatting. This commit reverts those changes and removes the custom scripts, restoring the project to its previous, stable state.
2025-03-13 11:55:31 +01:00
Jens Bergmann
cfe2b900c7 feat: Introduce isort and Python-based code quality tools (#446) 2025-03-10 06:09:49 +01:00
Jens Bergmann
c7f7b832b2 fix: Make description field optional in ad_defaults
The description field in the main configuration (ad_defaults) is now optional.
Previously, the bot would fail if no description or affixes were provided in
the main configuration. This change addresses issue #435.

Changes:
- Add fallback to empty string ("") when all description prefix/suffix sources
  are None in __get_description_with_affixes method
- Add comprehensive test suite for description handling in test_init.py
- Fix coverage path in pyproject.toml from 'kleinanzeigen_bot' to
  'src/kleinanzeigen_bot'

New tests cover:
- Description handling without main config description
- New format affixes in configuration
- Mixed old/new format affixes
- Ad-level affix precedence
- None value handling in affixes
- Email address @ symbol replacement

This change maintains backward compatibility while making the description
field optional in the main configuration, improving flexibility for users.
2025-02-18 21:39:53 +01:00
sebthom
5ade82b54d chore: update pyproject config 2025-02-10 21:16:38 +01:00
Jens Bergmann
affde0debf test: Enhance test coverage for KleinanzeigenBot initialization and core functionality (#408) 2025-02-09 03:33:01 +01:00
1cu
f4f00b9563 test: Add comprehensive test suite for extract.py (#400) 2025-02-05 23:35:45 +01:00
1cu
76b0901166 test: reorganized unit/integration tests (#398) 2025-02-03 17:05:14 +01:00
sebthom
236740fc2b chore: update pyproject.toml 2025-01-24 22:13:59 +01:00
sebthom
679d08502c chore: regenerate pdm.lock 2024-12-28 19:25:26 +01:00
sebthom
aec051826a chore: update project meta 2024-12-28 18:03:09 +01:00
sebthom
e077f8d86d feat: improve colorized logging 2024-12-27 15:35:58 +01:00
sebthom
9d54a949e7 feat: add multi-language support 2024-12-27 13:04:30 +01:00
sebthom
01d78bb000 feat: support shipping for WANTED ads #349 2024-11-21 23:53:26 +01:00
sebthom
6e76b0ff4c build: rename "scan" script to "audit" 2024-11-21 22:04:15 +01:00
sebthom
1b326c1ce8 chore: upgrade to Python 3.13 and update deps 2024-11-15 13:31:29 +01:00
sebthom
6c5c1940e1 chore: Update Python dependencies 2024-09-16 11:56:34 +02:00
sebthom
0491636666 fix: SSL: CERTIFICATE_VERIFY_FAILED when running compiled version 2024-08-05 13:50:43 +02:00
sebthom
822d3b7e7c upgrade dependencies
- setuptools 69.1.1 -> 69.5.1
- pytest-rerunfailures 13.0 -> 14.0
- autopep8 2.0.4 -> 2.1.0
- typing-extensions 4.10.0 -> 4.11.0
- pyright 1.1.353 -> 1.1.359
- pyinstaller 6.5.0 -> 6.6.0
- pyinstaller-hooks-contrib 2024.3 -> 2024.4
- nodriver 0.27rc3 -> 0.27rc4
2024-04-17 17:49:11 +02:00
sebthom
d5ae070bb3 chore: Update Python dependencies 2024-03-11 00:41:20 +01:00
sebthom
c9f12bfeea add "pdm debug" task 2024-03-07 23:21:50 +01:00
sebthom
a441c5de73 replace selenium with nodriver 2024-03-07 20:33:23 +01:00
sebthom
df92206f8c upgrade pytest 2024-03-04 14:25:35 +01:00
sebthom
115fb82064 remove webdriver-manager dependency 2024-03-04 13:27:17 +01:00
sebthom
9caa7a7124 use venv 2024-03-04 10:07:47 +01:00
sebthom
703c4fee23 chore: Update Python dependencies 2024-03-02 23:15:21 +01:00
sebthom
9d1ecb2882 improve dynamic version handling 2024-01-12 11:05:54 +01:00
sebthom
11f47140dc add some color to usage help 2024-01-12 11:00:32 +01:00
sebthom
a87e12bf1b use more predictable version numbers 2024-01-12 01:41:18 +01:00
sebthom
7b2dfd8559 make builds reproducible 2024-01-12 00:51:35 +01:00
sebthom
baa3c3d748 remove "inflect" dependency to reduce binary size 2023-12-11 15:03:36 +01:00
sebthom
55d8cc124b upgrade deps and fix build 2023-11-20 07:33:06 +01:00
sebthom
4acf32d3dd update copyright notice 2023-10-15 18:00:45 +02:00
sebthom
a8ef6818b7 support Python 3.12 2023-10-14 23:11:02 +02:00
sebthom
79dc665264 upgrade dependencies 2023-09-17 14:41:43 +02:00
sebthom
38a76572a4 improve type hints 2023-09-17 14:26:35 +02:00
sebthom
51ef9c8190 chore: Update Python dependencies 2023-08-01 11:12:09 +02:00