Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 1.04 KB

File metadata and controls

27 lines (23 loc) · 1.04 KB

The project

KSeF-JS is a framework-agnostic library for accessing KSeF API 2.0

Coding standards

  • use compact style
  • do not generate bload
  • do not write fallbacks unlsess asked
  • apply SoC rules
  • every public class should have own file
  • private classess for composition should be placed in the file with public class
  • ES2025
  • NO TYPESCRIPT
  • almost no-dependency implementation, no frameworks
  • rely only on transport libraries like axios
  • avoid lodash when possible
  • indentation: 4 spaces (no tabs)
  • use linter to clean and lint the code
  • Use Python standard Dataclasses and avoid Union, Dict, Any, Optional everywhere possible in type hints. Always map directly to specific models.
  • Models should be defined in their respective domain modules (e.g., invoice models in invoices.py) and MUST NOT have redundant domain prefixes (e.g., use QueryFilters instead of InvoiceQueryFilters).