jborean93 / smbprotocol

Python SMBv2 and v3 Client
MIT License
316 stars 73 forks source link

Update Project Structure #188

Closed jborean93 closed 2 years ago

jborean93 commented 2 years ago

Updates the project structure to use a PEP 517 pyproject.toml definition and migrates the code outside of the project root into the src folder layout. This aligns the project with most of my other project layouts and utilises newer standards that avoid setuptool specific configurations going forward.

Other changes include auto formatting the files with black and isort to ensure a consistent Python code style and vscode configuration files to have this done automatically.

codecov[bot] commented 2 years ago

Codecov Report

Merging #188 (a0bbf0c) into master (ba90646) will increase coverage by 0.00%. The diff coverage is 99.74%.

@@           Coverage Diff           @@
##           master     #188   +/-   ##
=======================================
  Coverage   99.09%   99.09%           
=======================================
  Files          23       24    +1     
  Lines        5063     5069    +6     
=======================================
+ Hits         5017     5023    +6     
  Misses         46       46           
Flag Coverage Δ
macOS 68.25% <65.95%> (+0.03%) :arrow_up:
py3.10 99.07% <99.66%> (+<0.01%) :arrow_up:
py3.6 ?
py3.7 99.07% <99.66%> (+<0.01%) :arrow_up:
py3.8 99.07% <99.66%> (+<0.01%) :arrow_up:
py3.9 99.09% <99.74%> (+<0.01%) :arrow_up:
ubuntu 96.77% <98.13%> (+<0.01%) :arrow_up:
windows 99.01% <99.57%> (+<0.01%) :arrow_up:
x64 99.09% <99.74%> (+<0.01%) :arrow_up:
x86 99.01% <99.57%> (+<0.01%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/smbprotocol/__init__.py 100.00% <ø> (ø)
src/smbprotocol/tree.py 96.68% <96.00%> (ø)
src/smbprotocol/session.py 95.18% <96.42%> (ø)
src/smbclient/__init__.py 100.00% <100.00%> (ø)
src/smbclient/_io.py 99.02% <100.00%> (ø)
src/smbclient/_os.py 98.48% <100.00%> (ø)
src/smbclient/_pool.py 95.89% <100.00%> (ø)
src/smbclient/path.py 90.69% <100.00%> (ø)
src/smbclient/shutil.py 95.19% <100.00%> (ø)
src/smbprotocol/_text.py 100.00% <100.00%> (ø)
... and 16 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.