happy-kitchen-89482
04/06/2019, 4:51 PMfierce-park-88503
04/06/2019, 5:02 PMhappy-kitchen-89482
04/06/2019, 5:05 PMsrc/
slowly, no? and then rename src/
away atomically.fierce-park-88503
04/06/2019, 5:08 PMaloof-angle-91616
04/06/2019, 10:54 PMnutritious-monkey-78516
04/07/2019, 5:30 AMaloof-angle-91616
04/09/2019, 2:06 AMred-balloon-89377
04/09/2019, 4:04 PMCACHE_NAME
env var used for in .travis.yml.mustache
? Can I override it if I want to create more shards? (sth like CACHE_NAME=cronjob{{.}}.with_feature
)limited-country-20626
04/10/2019, 5:31 PMlimited-country-20626
04/10/2019, 5:31 PMlimited-country-20626
04/10/2019, 5:32 PMwitty-crayon-22786
04/10/2019, 5:55 PMfaint-holiday-82821
04/10/2019, 7:05 PM[repl.py]
ipython = True
When invoking something like
./pants repl --repl-py-ipython src/starsky_utils
it works perfectly! am I reading the docs on options & scopes wrong?aloof-angle-91616
04/10/2019, 7:08 PM[repl.repl.py]
ipython = True
because adding options after a goal name is the same as prefixing them with that name -- so your command could have also been written as ./pants --repl-repl-py-ipython repl src/starsky_utils
. it is however strange that setting --repl-py-ipython
without the deeper scope doesn't work, and it's not clear to me why we have a nested [repl.repl.py]
scope at allaloof-angle-91616
04/10/2019, 7:09 PMfresh-architect-74417
04/10/2019, 10:28 PMfresh-architect-74417
04/10/2019, 10:52 PMfierce-park-88503
04/11/2019, 6:50 PM./pants --changed-since=X list | grep some/target
to check if a particular target has changed?fierce-park-88503
04/11/2019, 6:50 PMaloof-angle-91616
04/11/2019, 7:15 PMgrep -P
, or i publish this hacky script i use sometimes that intersects lines of filesfaint-holiday-82821
04/11/2019, 10:30 PMoptions="-n 10"
errors out w/ unrecognized arguments: -n
[1] https://pypi.org/project/pytest-xdist/fresh-architect-74417
04/11/2019, 10:49 PMfrom foo.bar import OrderedDict
, then another part of the project say from twitter.foo.x import OrderedDict
. I feel it make it really hard to distinguish.
2-The second thing. Test are located outside of the source code directory. If I want to know a module has a unittest, I will need to open a separate directory outside of the project source code, and look for the unittests. Unittests are used as a document to understand how the module works. At Google, all of the unittests are located next to the module. If you open any directory. You will see something like this: foo.py
and foo_test.py
. Here at the company I work at we create a directory called tests
and we store all the tests related to the modules in it. So, if I have foo.py
in a directory, the test will be located in tests/foo_test.py
in the same directory of foo.py
.happy-kitchen-89482
04/11/2019, 10:57 PMhappy-kitchen-89482
04/11/2019, 10:57 PMaloof-angle-91616
04/11/2019, 11:10 PMfrom...import
feels actually more consistent to me, and is a pattern we try to employ in the rust codebase as well, so it's quite consistent across the project and changing that would be a big step i think. it's definitely more injectable and easier to mock, i think, even if most python projects don't tend to use this style [citation needed, i'm not a pythonista yet].fresh-architect-74417
04/11/2019, 11:11 PMfrom
at all. We import the full as an alias instead. That will prevent accidental imports for functions/classes/etcaloof-angle-91616
04/11/2019, 11:15 PMfresh-architect-74417
04/11/2019, 11:18 PMwitty-crayon-22786
04/11/2019, 11:27 PMacceptable-pencil-93200
04/12/2019, 9:40 AM