Comments (2)
RE whitespace, sure go ahead.
You're right also about the rez_ prefix to a lot of the modules, this is a
hangover from before code was structured into a package.
thx
A
On Wed, Nov 27, 2013 at 6:06 PM, Chad Dombrova [email protected]:
I would love to see the rez codebase made more PEP8 compliant:
http://www.python.org/dev/peps/pep-0008/current problems:
- some files use tabs instead of space tabs
- use of type(foo) == type(bar) instead of isinstance
- use of g_variable for global constants ( prefix denotes private
variables)- general whitespace issues like foo=3 instead of foo = 3 and foo(1+2)instead of foo(1
+2)- importing all: from module import *
- importing modules from inside a package without the module prefix:
e.g. import rez_config instead of import rez.rez_config.non-pep8 style issues:
- the rez_ prefix in front of some of the modules is redundant and
non-standard. I get the impression that rez used to be a bunch of separate
modules that were not under a package, but now that it is a package,
there's no longer a need for the prefix.now is the time to fix these things since the code is in such flux that
other changes are highly unlikely to merge anyway.If you give me the go ahead, I can automatically fix all whitespace issues
with autopep8. I use these settings:autopep8 -i -r -v --pep8-passes=300 --ignore=E501,E302
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/43
.
from rez.
This is really close, but I would like to do 2 things before we close:
- document in the README about setting up pep8 warnings in eclipse and sublime
- run autopep8 one more time after the current outstanding merges
from rez.
Related Issues (20)
- 'use_variant_shortlinks' config entry ignore by rez-cp HOT 5
- Error caused by weakly referenced package not specifying version range
- Document plugin settings
- Add "why rez" doc page HOT 2
- REZ_USED_IMPLICIT_PACKAGES tilde expansion on windows HOT 2
- rez-bind os requires arch
- TSC Meeting 2024-04-18 HOT 4
- Alias in powershell error HOT 4
- Add future deprecation notice to rez-bind, particularly the --quickstart option (including documentation warnings)
- "process ID out of range" error when using rez-env from within a Docker container with namespaced PIDs HOT 3
- Rez auto delete rxt temp files make subprocess rez-context faild. HOT 1
- Ephemerals should be available in late binding functions HOT 1
- Add attribute in late bindings to detect when it is run under rez-test
- Feature request: "proxy" packages that support direct editing of files without rebuild HOT 3
- Shell type plugin can resolve incorrectly in rez.system on Linux. HOT 1
- rez-pkg-cache the case of pachage'name HOT 1
- TSC Meeting 2024-05-16
- Combined packages (multi packages) fail on windows
- Rez use powershell to render houdini will lost $HIP and $F HOT 8
- build_requires with @late can not run rez env -b to create build env
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rez.