Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app_dirs: Add tests, allow configuration, template replacement #287

Merged
merged 6 commits into from Jun 24, 2023

Conversation

tony
Copy link
Member

@tony tony commented Jun 19, 2023

AppDirs should allow:

  • Custom replacement of variables
    • XDG dir variables
    • Env variables
    • General custom overrides
  • Should live in _internals/app_dirs.py
  • Should have tests
  • Should have documentation
  • Should have doctests

@codecov
Copy link

codecov bot commented Jun 19, 2023

Codecov Report

Merging #287 (f61fdff) into master (e32faea) will increase coverage by 1.29%.
The diff coverage is 93.10%.

@@            Coverage Diff             @@
##           master     #287      +/-   ##
==========================================
+ Coverage   69.41%   70.70%   +1.29%     
==========================================
  Files          10       12       +2     
  Lines        1007     1065      +58     
  Branches      182      196      +14     
==========================================
+ Hits          699      753      +54     
- Misses        283      284       +1     
- Partials       25       28       +3     
Impacted Files Coverage Δ
tests/_internal/test_app_dirs.py 90.00% <90.00%> (ø)
src/unihan_etl/_internal/app_dirs.py 96.42% <96.42%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@tony tony force-pushed the app-dirs-configurable branch 5 times, most recently from f1ab0fd to ca1ee6b Compare June 19, 2023 21:26
@tony tony force-pushed the app-dirs-configurable branch 2 times, most recently from c41a074 to b41dde4 Compare June 24, 2023 09:30
@tony tony merged commit dd6b514 into master Jun 24, 2023
10 checks passed
@tony tony deleted the app-dirs-configurable branch June 24, 2023 10:06
tony added a commit that referenced this pull request Jun 24, 2023
tony added a commit that referenced this pull request Sep 2, 2023
#287)

app_dirs:
- Move from `unihan_etl` to `unihan_etl._internal`
- Adds doctests
- Normal pytests
- Variable replacement
tony added a commit that referenced this pull request Sep 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant