Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lint: checks and test for missing CSS #613

Merged
merged 2 commits into from
Oct 20, 2023

Conversation

erinendrei
Copy link
Contributor

@erinendrei erinendrei commented Oct 18, 2023

Added checks to se_epub_lint.py for missing dedication and epigraph CSS. These are placed close to the checks for missing poetry CSS, after what seemed to be the end of the poetry-related checks.

Added test data, test name, and output/golden file for missing dedication and epigraph CSS as well as all the other missing styles that lint checks for (span.elision; abbreviations with se:era, se:temperature, and z3998:acronym epub:type attributes; and elements with z3998:poem, :hymn, :verse, :lyrics epub:type attributes).

Closes #612.

@acabal
Copy link
Member

acabal commented Oct 20, 2023

Looks very good! Pylint is complaining about trailing space, can you review the Github checks and clean that up?

@erinendrei
Copy link
Contributor Author

erinendrei commented Oct 20, 2023

Sorry! Pylint is clear for me now if you want to try again. (There is no extra commit because I rebased to remove the whitespace. I also just put the poetry-related epub:types in chapter-1.xhtml of the test data in alphabetical order.)

@acabal acabal merged commit 480e470 into standardebooks:master Oct 20, 2023
1 check passed
@acabal
Copy link
Member

acabal commented Oct 20, 2023

Excellent, thanks!

@erinendrei erinendrei deleted the lint-css branch October 20, 2023 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lint checks for missing front matter CSS
2 participants