-
Notifications
You must be signed in to change notification settings - Fork 0
Fix CI lint deps (isort) + ignore .venv variants #67
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
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
e4aed3b
Fix stability obstruction handling
danielnovais-tech 7d5a590
Refactor code structure for improved readability and maintainability
danielnovais-tech 77c777e
chore: trigger CI rerun
danielnovais-tech 3a0da31
chore: update isort version in requirements-dev.txt and enhance .giti…
danielnovais-tech File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -200,6 +200,7 @@ celerybeat.pid | |
| .env | ||
| .envrc | ||
| .venv | ||
| .venv*/ | ||
| env/ | ||
| venv/ | ||
| ENV/ | ||
|
|
||
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,76 @@ | ||
| # This file must be used with "source bin/activate" *from bash* | ||
| # You cannot run it directly | ||
|
|
||
| deactivate () { | ||
| # reset old environment variables | ||
| if [ -n "${_OLD_VIRTUAL_PATH:-}" ] ; then | ||
| PATH="${_OLD_VIRTUAL_PATH:-}" | ||
| export PATH | ||
| unset _OLD_VIRTUAL_PATH | ||
| fi | ||
| if [ -n "${_OLD_VIRTUAL_PYTHONHOME:-}" ] ; then | ||
| PYTHONHOME="${_OLD_VIRTUAL_PYTHONHOME:-}" | ||
| export PYTHONHOME | ||
| unset _OLD_VIRTUAL_PYTHONHOME | ||
| fi | ||
|
|
||
| # Call hash to forget past locations. Without forgetting | ||
| # past locations the $PATH changes we made may not be respected. | ||
| # See "man bash" for more details. hash is usually a builtin of your shell | ||
| hash -r 2> /dev/null | ||
|
|
||
| if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then | ||
| PS1="${_OLD_VIRTUAL_PS1:-}" | ||
| export PS1 | ||
| unset _OLD_VIRTUAL_PS1 | ||
| fi | ||
|
|
||
| unset VIRTUAL_ENV | ||
| unset VIRTUAL_ENV_PROMPT | ||
| if [ ! "${1:-}" = "nondestructive" ] ; then | ||
| # Self destruct! | ||
| unset -f deactivate | ||
| fi | ||
| } | ||
|
|
||
| # unset irrelevant variables | ||
| deactivate nondestructive | ||
|
|
||
| # on Windows, a path can contain colons and backslashes and has to be converted: | ||
| case "$(uname)" in | ||
| CYGWIN*|MSYS*|MINGW*) | ||
| # transform D:\path\to\venv to /d/path/to/venv on MSYS and MINGW | ||
| # and to /cygdrive/d/path/to/venv on Cygwin | ||
| VIRTUAL_ENV=$(cygpath 'C:\Users\User\OneDrive\Desktop\RURAL MAPPER\Rural-Connectivity-Mapper-2026\.venv312') | ||
| export VIRTUAL_ENV | ||
| ;; | ||
| *) | ||
| # use the path as-is | ||
| export VIRTUAL_ENV='C:\Users\User\OneDrive\Desktop\RURAL MAPPER\Rural-Connectivity-Mapper-2026\.venv312' | ||
| ;; | ||
| esac | ||
|
|
||
| _OLD_VIRTUAL_PATH="$PATH" | ||
| PATH="$VIRTUAL_ENV/"Scripts":$PATH" | ||
| export PATH | ||
|
|
||
| VIRTUAL_ENV_PROMPT='(.venv312) ' | ||
| export VIRTUAL_ENV_PROMPT | ||
|
|
||
| # unset PYTHONHOME if set | ||
| # this will fail if PYTHONHOME is set to the empty string (which is bad anyway) | ||
| # could use `if (set -u; : $PYTHONHOME) ;` in bash | ||
| if [ -n "${PYTHONHOME:-}" ] ; then | ||
| _OLD_VIRTUAL_PYTHONHOME="${PYTHONHOME:-}" | ||
| unset PYTHONHOME | ||
| fi | ||
|
|
||
| if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then | ||
| _OLD_VIRTUAL_PS1="${PS1:-}" | ||
| PS1="("'(.venv312) '") ${PS1:-}" | ||
| export PS1 | ||
| fi | ||
|
|
||
| # Call hash to forget past commands. Without forgetting | ||
| # past commands the $PATH changes we made may not be respected | ||
| hash -r 2> /dev/null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| @echo off | ||
|
|
||
| rem This file is UTF-8 encoded, so we need to update the current code page while executing it | ||
| for /f "tokens=2 delims=:." %%a in ('"%SystemRoot%\System32\chcp.com"') do ( | ||
| set _OLD_CODEPAGE=%%a | ||
| ) | ||
| if defined _OLD_CODEPAGE ( | ||
| "%SystemRoot%\System32\chcp.com" 65001 > nul | ||
| ) | ||
|
|
||
| set "VIRTUAL_ENV=C:\Users\User\OneDrive\Desktop\RURAL MAPPER\Rural-Connectivity-Mapper-2026\.venv312" | ||
|
|
||
| if not defined PROMPT set PROMPT=$P$G | ||
|
|
||
| if defined _OLD_VIRTUAL_PROMPT set PROMPT=%_OLD_VIRTUAL_PROMPT% | ||
| if defined _OLD_VIRTUAL_PYTHONHOME set PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME% | ||
|
|
||
| set _OLD_VIRTUAL_PROMPT=%PROMPT% | ||
| set PROMPT=(.venv312) %PROMPT% | ||
|
|
||
| if defined PYTHONHOME set _OLD_VIRTUAL_PYTHONHOME=%PYTHONHOME% | ||
| set PYTHONHOME= | ||
|
|
||
| if defined _OLD_VIRTUAL_PATH set PATH=%_OLD_VIRTUAL_PATH% | ||
| if not defined _OLD_VIRTUAL_PATH set _OLD_VIRTUAL_PATH=%PATH% | ||
|
|
||
| set "PATH=%VIRTUAL_ENV%\Scripts;%PATH%" | ||
| set "VIRTUAL_ENV_PROMPT=(.venv312) " | ||
|
|
||
| :END | ||
| if defined _OLD_CODEPAGE ( | ||
| "%SystemRoot%\System32\chcp.com" %_OLD_CODEPAGE% > nul | ||
| set _OLD_CODEPAGE= | ||
| ) |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| @echo off | ||
|
|
||
| if defined _OLD_VIRTUAL_PROMPT ( | ||
| set "PROMPT=%_OLD_VIRTUAL_PROMPT%" | ||
| ) | ||
| set _OLD_VIRTUAL_PROMPT= | ||
|
|
||
| if defined _OLD_VIRTUAL_PYTHONHOME ( | ||
| set "PYTHONHOME=%_OLD_VIRTUAL_PYTHONHOME%" | ||
| set _OLD_VIRTUAL_PYTHONHOME= | ||
| ) | ||
|
|
||
| if defined _OLD_VIRTUAL_PATH ( | ||
| set "PATH=%_OLD_VIRTUAL_PATH%" | ||
| ) | ||
|
|
||
| set _OLD_VIRTUAL_PATH= | ||
|
|
||
| set VIRTUAL_ENV= | ||
| set VIRTUAL_ENV_PROMPT= | ||
|
|
||
| :END |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| home = C:\Users\User\AppData\Local\Programs\Python\Python312 | ||
| include-system-site-packages = false | ||
| version = 3.12.10 | ||
| executable = C:\Users\User\AppData\Local\Programs\Python\Python312\python.exe | ||
| command = C:\Users\User\AppData\Local\Programs\Python\Python312\python.exe -m venv C:\Users\User\OneDrive\Desktop\RURAL MAPPER\Rural-Connectivity-Mapper-2026\.venv312 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,225 @@ | ||
| .Dd May 18, 2004 | ||
| .\" ttx is not specific to any OS, but contrary to what groff_mdoc(7) | ||
| .\" seems to imply, entirely omitting the .Os macro causes 'BSD' to | ||
| .\" be used, so I give a zero-width space as its argument. | ||
| .Os \& | ||
| .\" The "FontTools Manual" argument apparently has no effect in | ||
| .\" groff 1.18.1. I think it is a bug in the -mdoc groff package. | ||
| .Dt TTX 1 "FontTools Manual" | ||
| .Sh NAME | ||
| .Nm ttx | ||
| .Nd tool for manipulating TrueType and OpenType fonts | ||
| .Sh SYNOPSIS | ||
| .Nm | ||
| .Bk | ||
| .Op Ar option ... | ||
| .Ek | ||
| .Bk | ||
| .Ar file ... | ||
| .Ek | ||
| .Sh DESCRIPTION | ||
| .Nm | ||
| is a tool for manipulating TrueType and OpenType fonts. It can convert | ||
| TrueType and OpenType fonts to and from an | ||
| .Tn XML Ns -based format called | ||
| .Tn TTX . | ||
| .Tn TTX | ||
| files have a | ||
| .Ql .ttx | ||
| extension. | ||
| .Pp | ||
| For each | ||
| .Ar file | ||
| argument it is given, | ||
| .Nm | ||
| detects whether it is a | ||
| .Ql .ttf , | ||
| .Ql .otf | ||
| or | ||
| .Ql .ttx | ||
| file and acts accordingly: if it is a | ||
| .Ql .ttf | ||
| or | ||
| .Ql .otf | ||
| file, it generates a | ||
| .Ql .ttx | ||
| file; if it is a | ||
| .Ql .ttx | ||
| file, it generates a | ||
| .Ql .ttf | ||
| or | ||
| .Ql .otf | ||
| file. | ||
| .Pp | ||
| By default, every output file is created in the same directory as the | ||
| corresponding input file and with the same name except for the | ||
| extension, which is substituted appropriately. | ||
| .Nm | ||
| never overwrites existing files; if necessary, it appends a suffix to | ||
| the output file name before the extension, as in | ||
| .Pa Arial#1.ttf . | ||
| .Ss "General options" | ||
| .Bl -tag -width ".Fl t Ar table" | ||
| .It Fl h | ||
| Display usage information. | ||
| .It Fl d Ar dir | ||
| Write the output files to directory | ||
| .Ar dir | ||
| instead of writing every output file to the same directory as the | ||
| corresponding input file. | ||
| .It Fl o Ar file | ||
| Write the output to | ||
| .Ar file | ||
| instead of writing it to the same directory as the | ||
| corresponding input file. | ||
| .It Fl v | ||
| Be verbose. Write more messages to the standard output describing what | ||
| is being done. | ||
| .It Fl a | ||
| Allow virtual glyphs ID's on compile or decompile. | ||
| .El | ||
| .Ss "Dump options" | ||
| The following options control the process of dumping font files | ||
| (TrueType or OpenType) to | ||
| .Tn TTX | ||
| files. | ||
| .Bl -tag -width ".Fl t Ar table" | ||
| .It Fl l | ||
| List table information. Instead of dumping the font to a | ||
| .Tn TTX | ||
| file, display minimal information about each table. | ||
| .It Fl t Ar table | ||
| Dump table | ||
| .Ar table . | ||
| This option may be given multiple times to dump several tables at | ||
| once. When not specified, all tables are dumped. | ||
| .It Fl x Ar table | ||
| Exclude table | ||
| .Ar table | ||
| from the list of tables to dump. This option may be given multiple | ||
| times to exclude several tables from the dump. The | ||
| .Fl t | ||
| and | ||
| .Fl x | ||
| options are mutually exclusive. | ||
| .It Fl s | ||
| Split tables. Dump each table to a separate | ||
| .Tn TTX | ||
| file and write (under the name that would have been used for the output | ||
| file if the | ||
| .Fl s | ||
| option had not been given) one small | ||
| .Tn TTX | ||
| file containing references to the individual table dump files. This | ||
| file can be used as input to | ||
| .Nm | ||
| as long as the referenced files can be found in the same directory. | ||
| .It Fl i | ||
| .\" XXX: I suppose OpenType programs (exist and) are also affected. | ||
| Don't disassemble TrueType instructions. When this option is specified, | ||
| all TrueType programs (glyph programs, the font program and the | ||
| pre-program) are written to the | ||
| .Tn TTX | ||
| file as hexadecimal data instead of | ||
| assembly. This saves some time and results in smaller | ||
| .Tn TTX | ||
| files. | ||
| .It Fl y Ar n | ||
| When decompiling a TrueType Collection (TTC) file, | ||
| decompile font number | ||
| .Ar n , | ||
| starting from 0. | ||
| .El | ||
| .Ss "Compilation options" | ||
| The following options control the process of compiling | ||
| .Tn TTX | ||
| files into font files (TrueType or OpenType): | ||
| .Bl -tag -width ".Fl t Ar table" | ||
| .It Fl m Ar fontfile | ||
| Merge the input | ||
| .Tn TTX | ||
| file | ||
| .Ar file | ||
| with | ||
| .Ar fontfile . | ||
| No more than one | ||
| .Ar file | ||
| argument can be specified when this option is used. | ||
| .It Fl b | ||
| Don't recalculate glyph bounding boxes. Use the values in the | ||
| .Tn TTX | ||
| file as is. | ||
| .El | ||
| .Sh "THE TTX FILE FORMAT" | ||
| You can find some information about the | ||
| .Tn TTX | ||
| file format in | ||
| .Pa documentation.html . | ||
| In particular, you will find in that file the list of tables understood by | ||
| .Nm | ||
| and the relations between TrueType GlyphIDs and the glyph names used in | ||
| .Tn TTX | ||
| files. | ||
| .Sh EXAMPLES | ||
| In the following examples, all files are read from and written to the | ||
| current directory. Additionally, the name given for the output file | ||
| assumes in every case that it did not exist before | ||
| .Nm | ||
| was invoked. | ||
| .Pp | ||
| Dump the TrueType font contained in | ||
| .Pa FreeSans.ttf | ||
| to | ||
| .Pa FreeSans.ttx : | ||
| .Pp | ||
| .Dl ttx FreeSans.ttf | ||
| .Pp | ||
| Compile | ||
| .Pa MyFont.ttx | ||
| into a TrueType or OpenType font file: | ||
| .Pp | ||
| .Dl ttx MyFont.ttx | ||
| .Pp | ||
| List the tables in | ||
| .Pa FreeSans.ttf | ||
| along with some information: | ||
| .Pp | ||
| .Dl ttx -l FreeSans.ttf | ||
| .Pp | ||
| Dump the | ||
| .Sq cmap | ||
| table from | ||
| .Pa FreeSans.ttf | ||
| to | ||
| .Pa FreeSans.ttx : | ||
| .Pp | ||
| .Dl ttx -t cmap FreeSans.ttf | ||
| .Sh NOTES | ||
| On MS\-Windows and MacOS, | ||
| .Nm | ||
| is available as a graphical application to which files can be dropped. | ||
| .Sh SEE ALSO | ||
| .Pa documentation.html | ||
| .Pp | ||
| .Xr fontforge 1 , | ||
| .Xr ftinfo 1 , | ||
| .Xr gfontview 1 , | ||
| .Xr xmbdfed 1 , | ||
| .Xr Font::TTF 3pm | ||
| .Sh AUTHORS | ||
| .Nm | ||
| was written by | ||
| .An -nosplit | ||
| .An "Just van Rossum" Aq just@letterror.com . | ||
| .Pp | ||
| This manual page was written by | ||
| .An "Florent Rougon" Aq f.rougon@free.fr | ||
| for the Debian GNU/Linux system based on the existing FontTools | ||
| documentation. It may be freely used, modified and distributed without | ||
| restrictions. | ||
| .\" For Emacs: | ||
| .\" Local Variables: | ||
| .\" fill-column: 72 | ||
| .\" sentence-end: "[.?!][]\"')}]*\\($\\| $\\| \\| \\)[ \n]*" | ||
| .\" sentence-end-double-space: t | ||
| .\" End: |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
.venv312virtual environment has been committed into the repo. This includes machine-specific absolute paths (e.g.,C:\Users\...) and will massively bloat the repository. Remove the entire.venv312/directory from the PR and ensure it is untracked (e.g.,git rm -r --cached .venv312) so it stays ignored going forward.