openinfrastructure / pypackage Goto Github PK
View Code? Open in Web Editor NEWOIS Python package template
License: BSD 3-Clause "New" or "Revised" License
OIS Python package template
License: BSD 3-Clause "New" or "Revised" License
Ideas to change:
from importlib_resources import files
... srcdir = files('mypackage.data.static').joinpath('foo.txt')
--debugpy
flag to wait for debugger attachmentMove to cblack by default. It's a version of black that supports 2 space indent. Note too data structures should be 2 space not 4.
Describe what you were trying to get done. Tell us what happened, what went
wrong, and what you expected to happen.
Paste the command(s) you ran and the output.
Traceback (most recent call last):
File "/Users/jeff/workspace/emanon/env/bin/emanon", line 33, in <module>
sys.exit(load_entry_point('emanon', 'console_scripts', 'emanon')())
File "/Users/jeff/workspace/emanon/env/lib/python3.8/site-packages/typer/main.py", line 214, in __call__
return get_command(self)(*args, **kwargs)
File "/Users/jeff/workspace/emanon/env/lib/python3.8/site-packages/click/core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "/Users/jeff/workspace/emanon/env/lib/python3.8/site-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/Users/jeff/workspace/emanon/env/lib/python3.8/site-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/jeff/workspace/emanon/env/lib/python3.8/site-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/jeff/workspace/emanon/env/lib/python3.8/site-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/Users/jeff/workspace/emanon/env/lib/python3.8/site-packages/typer/main.py", line 500, in wrapper
return callback(**use_params) # type: ignore
File "/Users/jeff/workspace/emanon/emanon/cli.py", line 31, in version
foo.bar
AttributeError: 'NoneType' object has no attribute 'bar'
Nate's recommended yapf config for now:
[style]
based_on_style = google
column_limit = 200
indent_width = 2
continuation_indent_width = 2
dedent_closing_brackets = true
blank_lines_between_top_level_imports_and_variables = 2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.