wemake-services / django-split-settings

Organize Django settings into multiple files and directories. Easily override and modify settings. Use wildcards and optional settings files.
http://django-split-settings.rtfd.io
BSD 3-Clause "New" or "Revised" License
1.11k stars 67 forks source link

Fix type-check with conditions in optional include. Fixes: #507 #508

Closed SukiCZ closed 11 months ago

SukiCZ commented 11 months ago

This allows type-checks to pass with conditions in optional include. e.g.

include(
    optional('local.py' if ENV == LOCAL),
)

BTW Thanks for a cool library! 😎

codecov[bot] commented 11 months ago

Codecov Report

Merging #508 (9a8055e) into master (8cd8594) will not change coverage. The diff coverage is 100.00%.

@@            Coverage Diff            @@
##            master      #508   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           40        41    +1     
  Branches         7         7           
=========================================
+ Hits            40        41    +1     
Files Coverage Ξ”
split_settings/tools.py 100.00% <100.00%> (ΓΈ)