pep8
: Check code against PEP8 conventionspep257
: Check docstrings against PEP257 conventions
pylint
: Strict lint toolpyflakes
: Static analysisfrosted
: Sucessor topyflakes
describe "fauxhai" do | |
before { Fauxhai.mock(platform: "centos", version: "6.4") } | |
let(:chef_run) { ChefSpec::Runner.new.converge() } | |
it "sets the platform correctly" do | |
expect(chef_run.node["platform"]).to eq("centos") | |
end | |
end |
def fizzbuzz(n): | |
for i in range(n): | |
if i % 3 == 0 and i % 5 == 0: | |
print("fizzbuzz") | |
elif i % 3 == 0: | |
print("fizz") | |
elif i % 5 == 0: | |
print("buzz") | |
else: | |
print(i) |
pep8
: Check code against PEP8 conventionspep257
: Check docstrings against PEP257 conventionspylint
: Strict lint toolpyflakes
: Static analysisfrosted
: Sucessor to pyflakes
def log(component, message, level='info'): | |
"Sends a log message with that component." | |
"If component is not a string, it's __qualname__ (__module__.__name__ + __name__) is used." | |
def create_log(component=None, level=None, ...): | |
"Creates a log that will use the given parameters." |
for i in range(10): | |
print(i) |
❯ python2 ~/dev/while.py | |
3.16730904579 | |
2.61067199707 | |
❯ python3 ~/dev/while.py | |
4.79477457899975 | |
2.070868385999802 |
❯ npm install bower | |
npm http GET https://registry.npmjs.org/bower | |
npm http 200 https://registry.npmjs.org/bower | |
npm http GET https://registry.npmjs.org/bower/-/bower-1.3.1.tgz | |
npm http 200 https://registry.npmjs.org/bower/-/bower-1.3.1.tgz | |
npm http GET https://registry.npmjs.org/abbrev | |
npm http GET https://registry.npmjs.org/archy/0.0.2 | |
npm http GET https://registry.npmjs.org/bower-config | |
npm http GET https://registry.npmjs.org/bower-endpoint-parser | |
npm http GET https://registry.npmjs.org/bower-json |
I hereby claim:
To claim this, I am signing this object:
Name: supervisor | |
Version: | |
Release: 1 | |
Summary: | |
Group: | |
License: | |
URL: | |
Source0: |
❯ mkdir test | |
❯ touch test/{a,b,c} | |
❯ touch test/.{a,b,c} | |
❯ ls -la test/.* | |
-rw-r--r-- 1 sam sam 0 Apr 13 17:10 test/.a | |
-rw-r--r-- 1 sam sam 0 Apr 13 17:10 test/.b | |
-rw-r--r-- 1 sam sam 0 Apr 13 17:10 test/.c | |
❯ rm -v test/.* | |
removed `test/.a' | |
removed `test/.b' |