Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
24ab5b08
Unverified
Commit
24ab5b08
authored
Mar 22, 2021
by
Stas Bekman
Committed by
GitHub
Mar 22, 2021
Browse files
[makefile] autogenerate target (#10814)
* autogenerate target * clarify comment
parent
2c668423
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
Makefile
Makefile
+9
-5
No files found.
Makefile
View file @
24ab5b08
...
@@ -19,6 +19,11 @@ modified_only_fixup:
...
@@ -19,6 +19,11 @@ modified_only_fixup:
deps_table_update
:
deps_table_update
:
@
python setup.py deps_table_update
@
python setup.py deps_table_update
# autogenerating code
autogenerate_code
:
deps_table_update
python utils/class_mapping_update.py
# Check that source code meets quality standards
# Check that source code meets quality standards
extra_quality_checks
:
extra_quality_checks
:
...
@@ -37,20 +42,20 @@ quality:
...
@@ -37,20 +42,20 @@ quality:
# Format source code automatically and check is there are any problems left that need manual fixing
# Format source code automatically and check is there are any problems left that need manual fixing
extra_style_checks
:
deps_table_update
extra_style_checks
:
python utils/custom_init_isort.py
python utils/custom_init_isort.py
python utils/style_doc.py src/transformers docs/source
--max_len
119
python utils/style_doc.py src/transformers docs/source
--max_len
119
python utils/class_mapping_update.py
# this target runs checks on all files
# this target runs checks on all files
and potentially modifies some of them
style
:
style
:
black
$(check_dirs)
black
$(check_dirs)
isort
$(check_dirs)
isort
$(check_dirs)
${MAKE}
autogenerate_code
${MAKE}
extra_style_checks
${MAKE}
extra_style_checks
# Super fast fix and check target that only works on relevant modified files since the branch was made
# Super fast fix and check target that only works on relevant modified files since the branch was made
fixup
:
modified_only_fixup extra_style_checks extra_quality_checks
fixup
:
modified_only_fixup extra_style_checks
autogenerate_code
extra_quality_checks
# Make marked copies of snippets of codes conform to the original
# Make marked copies of snippets of codes conform to the original
...
@@ -87,4 +92,3 @@ post-release:
...
@@ -87,4 +92,3 @@ post-release:
post-patch
:
post-patch
:
python utils/release.py
--post_release
--patch
python utils/release.py
--post_release
--patch
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment