Giter Club home page Giter Club logo

pypackage's People

Contributors

andremiras avatar audreyfeldroy avatar benjaoming avatar breezko avatar cerickson avatar chadbailey avatar cxong avatar eliasdorneles avatar erwinjanssen avatar gregmuellegger avatar hugovk avatar jeffmccune avatar jestaubach avatar jhonjairoroa87 avatar katialira avatar kevgathuku avatar mandeep avatar manuphatak avatar palmerev avatar psiace avatar purplediane avatar pydanny avatar pyup-bot avatar rgbkrk avatar rwanyoike avatar skarbot avatar thejonanshow avatar tony avatar treyhunner avatar westurner avatar

Watchers

 avatar  avatar  avatar

pypackage's Issues

Items to add

Ideas to change:

  • Typer pytest subcommand example
  • Strip out bumpversion
  • Read a json file from the python package using from importlib_resources import files ... srcdir = files('mypackage.data.static').joinpath('foo.txt')
  • --debugpy flag to wait for debugger attachment
  • launch.json file to attach to debugpy
  • pendulum
  • requests
  • retryable

Documentation

Move to cblack

Move 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.

Test

Context

  • pypackage version:
  • Python version:
  • Operating System:

Description

Describe what you were trying to get done. Tell us what happened, what went
wrong, and what you expected to happen.

What I Did

Paste the command(s) you ran and the output.
Traceback or other long 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'

Add yapf 2 space configuration for code and data

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.