Skip to content

Commit c99a85c

Browse files
committed
Fix lint issues
1 parent a5d8bf4 commit c99a85c

File tree

313 files changed

+22288
-4724
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

313 files changed

+22288
-4724
lines changed

.git-blame-ignore-revs

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# When making commits that are strictly formatting/style changes, add the
2+
# commit hash here, so git blame can ignore the change.
3+
#
4+
# For more details, see:
5+
# https://git-scm.com/docs/git-config#Documentation/git-config.txt-blameignoreRevsFile
6+
# https://github.com/callezenwaka/sphinx-syft-theme/pull/713
7+
#
8+
90550b66ace16a370caa446e54698b126fda740b # initial black-format
9+
236d4c6d1f10f5da064d929e9eb594daecf23551 # apply black 20.8b1 format
10+
69f1a42a3b184f4ba4c98f1745779a277d56c5e2 # [pre-commit.ci] Automatic linting and formatting fixes
11+
a35529c9ee8d5863613df40787cda0021b3e0128 # Manual fixes for stylelint
12+
ce583b8f3136d52e8056c9a651bf6f92e7922f79 # Manual adjustments to autofixes
13+
d1ee9eb7a132cde51433e9594513319fdab41f2f # Autofix (stylelint)

.gitignore

100755100644
+129-10
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,130 @@
1-
.vscode
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
214
dist/
3-
/build
4-
_build
5-
__pycache__
6-
*.egg-info
7-
/docs/reference
8-
/book/reference
9-
.github
10-
.DS_Store
11-
# docs
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.coverage
42+
.coverage.*
43+
.cache
44+
nosetests.xml
45+
coverage.xml
46+
*.cover
47+
.hypothesis/
48+
49+
# ruff cache
50+
.ruff_cache
51+
52+
# Django stuff:
53+
*.log
54+
local_settings.py
55+
56+
# Flask stuff:
57+
instance/
58+
.webassets-cache
59+
60+
# Scrapy stuff:
61+
.scrapy
62+
63+
# Sphinx documentation
64+
docs/_build/
65+
docs/examples/generated/
66+
docs/api/
67+
warnings.txt
68+
69+
# PyBuilder
70+
target/
71+
72+
# Jupyter Notebook
73+
.ipynb_checkpoints
74+
75+
# pyenv
76+
.python-version
77+
78+
# celery beat schedule file
79+
celerybeat-schedule
80+
81+
# SageMath parsed files
82+
*.sage.py
83+
84+
# dotenv
85+
.env
86+
87+
# virtualenv
88+
.venv
89+
venv/
90+
ENV/
91+
envs/
92+
.nox
93+
94+
# Spyder project settings
95+
.spyderproject
96+
.spyproject
97+
98+
# Rope project settings
99+
.ropeproject
100+
101+
# mkdocs documentation
102+
/site
103+
104+
# mypy
105+
.mypy_cache/
106+
107+
# nodejs
108+
.nodeenv/
109+
.yarn-packages
110+
node_modules/
111+
112+
# Editors
113+
.vscode
114+
.idea
115+
116+
# MacOSX store files
117+
**/.DS_Store
118+
119+
# THEME FILES
120+
# files from the gallery screenshots
121+
docs/_static/gallery
122+
123+
# Our site profile tests
124+
profile.svg
125+
126+
# Compiled translation files (are compiled at build time)
127+
src/syft_sphinx_theme/locale/*/*/*.mo
128+
129+
# jupyterlite db
130+
.jupyterlite.doit.db

.hintrc

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": [
3+
"development"
4+
],
5+
"hints": {
6+
"meta-viewport": "off"
7+
}
8+
}

.pre-commit-config.yaml

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Config for pre-commit CI https://pre-commit.ci/
2+
ci:
3+
autofix_commit_msg: |
4+
[pre-commit.ci] Automatic linting and formatting fixes
5+
autofix_prs: true
6+
autoupdate_commit_msg: "[pre-commit.ci] pre-commit autoupdate hooks"
7+
autoupdate_schedule: monthly
8+
9+
# Fix the node version to avoid a GLIBC error
10+
# ref: https://stackoverflow.com/questions/71939099/bitbucket-pipeline-error-installing-pre-commit-ts-lint/71940852#71940852
11+
default_language_version:
12+
node: 16.14.2
13+
14+
repos:
15+
- repo: https://github.com/pre-commit/mirrors-prettier
16+
rev: v4.0.0-alpha.8
17+
hooks:
18+
- id: prettier
19+
# Exclude the HTML, since it doesn't understand Jinja2
20+
# exclude also the webpack.config.js file has it embed complete url dificult to prettify
21+
# exclude the pytest-regressions folder tests/test_ally
22+
exclude: .+\.html|webpack\.config\.js|tests/test_a11y/
23+
24+
- repo: https://github.com/psf/black
25+
rev: 24.8.0
26+
hooks:
27+
- id: black
28+
29+
- repo: https://github.com/astral-sh/ruff-pre-commit
30+
rev: "v0.5.6"
31+
hooks:
32+
- id: ruff
33+
34+
- repo: https://github.com/asottile/pyupgrade
35+
rev: v3.17.0
36+
hooks:
37+
- id: pyupgrade
38+
args: [--py37-plus]
39+
40+
- repo: https://github.com/Riverside-Healthcare/djLint
41+
rev: v1.34.1
42+
hooks:
43+
- id: djlint-jinja
44+
types_or: ["html"]
45+
46+
- repo: https://github.com/PyCQA/doc8
47+
rev: v1.1.1
48+
hooks:
49+
- id: doc8
50+
51+
- repo: "https://github.com/kynan/nbstripout"
52+
rev: "0.7.1"
53+
hooks:
54+
- id: nbstripout
55+
56+
- repo: https://github.com/mondeja/pre-commit-po-hooks
57+
rev: v1.7.3
58+
hooks:
59+
- id: remove-metadata
60+
61+
- repo: https://github.com/thibaudcolas/pre-commit-stylelint
62+
rev: v16.8.1
63+
hooks:
64+
- id: stylelint
65+
# automatically fix .scss files where possible
66+
args: [--fix]
67+
additional_dependencies:
68+
# stylelint itself needs to be here when using additional_dependencies.
69+
70+

.readthedocs.yaml

-39
This file was deleted.

.stylelintrc.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "stylelint-config-standard-scss",
3+
"rules": {
4+
"selector-class-pattern": null,
5+
"no-descending-specificity": null,
6+
"selector-id-pattern": null
7+
}
8+
}

.transifex.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
filters:
2+
- filter_type: dynamic
3+
file_format: PO
4+
source_language: en
5+
source_files_expression: src/sphinx_syft_theme/locale/en/LC_MESSAGES/<file>.po
6+
translation_files_expression: src/sphinx_syft_theme/locale/<lang>/LC_MESSAGES/<file>.po

CONTRIBUTING.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Contributing to this theme
2+
3+
Contributions are very welcome! Installing the development version, building
4+
the example docs and developing the css/js of the theme, etc, is explained in
5+
more detail in the contributing section of the documentation:
6+
7+
- [Community and contribution guide rendered docs](https://sphinx-syft-theme.readthedocs.io/en/latest/)

PKG-INFO

-24
This file was deleted.

0 commit comments

Comments
 (0)