forked from funkwerk/compose_format
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
35 lines (28 loc) · 723 Bytes
/
Rakefile
File metadata and controls
35 lines (28 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
task default: :test
task test: :audit
task :test do
sh "PYTHONPATH=#{File.expand_path '.'}:$PYTHONPATH cucumber"
end
desc 'Publishes the PyPi'
task push: :generate
task :push do
sh 'python3 setup.py sdist upload'
end
desc 'Checks style'
task audit: :rubocop
task :audit do
ignores = %w(D100 D101 D102 D103 D104 E501 I201 N806 W605)
FILES = FileList[%w(bin/compose_format compose_format/*.py setup.py)]
sh "flake8 --ignore='#{ignores * ','}' #{FILES}"
sh "pylint -E #{FILES}"
end
desc 'Checks ruby style'
task :rubocop do
sh 'rubocop'
end
task :generate do
sh 'pandoc --from=markdown --to=rst --output=README.rst README.md'
end
task :docker do
sh 'docker build --tag=funkwerk/compose_format .'
end